Overview 多道程序技术和程序并发执行的条件 Process Concept 3 Process Scheduling Operation on processes Interprocess Communication(进程间通信,IPC) 6 Example of IPC Systems Communication in C/S Systems 8 小结和作业 口1⊙生年12月00 陈香兰xlanchen@ustc.edu.cn http:/taf.u0117401:Operating System计算机u原理与道 March27,20193/88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview 1 多道程序技术和程序并发执行的条件 2 Process Concept 3 Process Scheduling 4 Operation on processes 5 Interprocess Communication (进程间通信, IPC) 6 Example of IPC Systems 7 Communication in C/S Systems 8 小结和作业 陈香兰 xlanchen@ustc.edu.cn http://staff.ustc.edu.cn/~xlanchen (Computer Application Laboratory, CS, USTC @ Hefei Embedded System Laboratory, CS, USTC @ Suzhou) 0117401: Operating System 计算机原理与设计 March 27, 2019 3 / 88
Outline 多道程序技术和程序并发执行的条件 ●多道程序技术的难点 oSerial execution of programs(程序的顺序执行) o Concurrent execution of programs(程序的并发执行) 口1回年走1,2月Q0 陈话兰xlanchen@ustc.edu.cn http/staff.u0117401 Operating System计算机原理与道 March27,20194/88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline 1 多道程序技术和程序并发执行的条件 多道程序技术的难点 Serial execution of programs (程序的顺序执行) Concurrent execution of programs (程序的并发执行) 陈香兰 xlanchen@ustc.edu.cn http://staff.ustc.edu.cn/~xlanchen (Computer Application Laboratory, CS, USTC @ Hefei Embedded System Laboratory, CS, USTC @ Suzhou) 0117401: Operating System 计算机原理与设计 March 27, 2019 4 / 88
Some easily confused terms o In our course: Program(程序:passive entity,usually a file containing a list of instructions stored on disk(often called an executable file). Tasks(任务:a general reference Jobs(作业:in batch system,user programs(and data)waiting to be loaded and executed Processes(进程:a program in execution o Usually,the term job and process are used interchangeably. 口1⊙生年12月0C 东香兰xlanchen@ustc,edu.cn http:/staff..u011740i:Operating System计算机原理与道 March27,20195/88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Some easily confused terms In our course: ▶ Program(程序): passive entity, usually a file containing a list of instructions stored on disk (often called an executable file). ▶ Tasks(任务): a general reference ▶ Jobs(作业): in batch system, user programs (and data) waiting to be loaded and executed ▶ Processes(进程): a program in execution Usually, the term job and process are used interchangeably. 陈香兰 xlanchen@ustc.edu.cn http://staff.ustc.edu.cn/~xlanchen (Computer Application Laboratory, CS, USTC @ Hefei Embedded System Laboratory, CS, USTC @ Suzhou) 0117401: Operating System 计算机原理与设计 March 27, 2019 5 / 88
Outline 多道程序技术和程序并发执行的条件 ●多道程序技术的难点 o Serial execution of programs程序的顶序执行 。Concurrent execution of programs(程序的并发执行) 口1⊙生年12月00 陈话兰xlanchen@ustc.edu:cn http/staff.u0117401 Operating System计算机原理与道 March27,20196/88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline 1 多道程序技术和程序并发执行的条件 多道程序技术的难点 Serial execution of programs (程序的顺序执行) Concurrent execution of programs (程序的并发执行) 陈香兰 xlanchen@ustc.edu.cn http://staff.ustc.edu.cn/~xlanchen (Computer Application Laboratory, CS, USTC @ Hefei Embedded System Laboratory, CS, USTC @ Suzhou) 0117401: Operating System 计算机原理与设计 March 27, 2019 6 / 88
Multiprogramming(多道程序techniques From Simple Batch system-Multiprogramming system Memory must be shared by multiple programs CPU must be multiplexing()by multiple programs 4 basic components: ●Process management ②Memory management 1/O system management file management 口1⊙生年12月0C 陈话兰xlanchen@ustc.edu.cn http/staff.u0117401 Operating System计算机原理与连 March27,20197/88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Multiprogramming(多道程序) techniques From Simple Batch system →Multiprogramming system ▶ Memory must be shared by multiple programs ▶ CPU must be multiplexing(复用) by multiple programs ▶ 4 basic components: 1 Process management 2 Memory management 3 I/O system management 4 file management 陈香兰 xlanchen@ustc.edu.cn http://staff.ustc.edu.cn/~xlanchen (Computer Application Laboratory, CS, USTC @ Hefei Embedded System Laboratory, CS, USTC @ Suzhou) 0117401: Operating System 计算机原理与设计 March 27, 2019 7 / 88