斗★ ★长 Chapter 2: Process/Thread ★★ Instructor. HengmingZou, Ph. D n Pursuit of absolute Simplicity求于至简,归于永恒
1 Chapter 2: Process/Thread Instructor: Hengming Zou, Ph.D. In Pursuit of Absolute Simplicity 求于至简,归于永恒
★ Content ¥ 斗 ★★ ≈ Processes s Threads o Inter-process communication o Classical IPC problems o Scheduling
2 Content Processes Threads Inter-process communication Classical IPC problems Scheduling
★ Definition of a process ¥ 斗 ★★ s Informal A prog amin execution A runningpiece of codealongwith all the things the progam can read/write ≈Foma One or more threadsin their own addressspace o Note that process!= program
3 Definition of A Process Informal – A program in execution – A running piece of code along with all the things the program can read/write Formal – One or more threads in their own address space Note that process != program
★ The need for process ¥ 斗 ★★ o What is the priniple motivation for inventing process Tosupportmultiprogamming
4 The Need for Process What is the principle motivation for inventing process? – To support multiprogramming
★ The Process model ¥ 斗 ★★ o Conceptual viewing of the processes o Concurrency Multiple processesseemto run conaumently But in reality only one activeatany instant s Progress Every processmakes progress
5 The Process Model Conceptual viewing of the processes Concurrency – Multiple processes seem to run concurrently – But in reality only one active at any instant Progress – Every process makes progress