Process Concept

Process in Memory

Threads

Process State

Diagram of Process State

Process Control Block (PCB)

Context Switch


Review Slides(1)

Process Scheduling
Process Scheduling Queues

Process Scheduling Diagram

Schedulers
对一个进程来说有虚拟地址空间,由于内存空间有限,对于那些不常用的一般情况下会放到disk上,需要的时候再swap到memory,这就是所谓的Medium-term
Long-Term Scheduler

Short-Term Scheduler

Medium-Term Scheduler

Operations on Processes
Tree of Processes

Processes Creation

UNIX/Linux Process Creation


UNIX/Linux Example

1 |
|
执行结果:
1 |
|

Process Termination

Interprocess Communication (IPC)

Communication Methods


Shared Memory

Consumer & Producer Problem

Shared-Memory Solution

Message Passing


Direct Communication


Indirect communication


Synchronization

Socket


Remote Procedure Calls: RPC

