The Nucleus of a Multiprogramming System
Goal:
Design a system in which mode of operatin could be changed.(This means it will make a general system to support anything)
Process:
The system only has two layers: Process & Nucleus (software extension of hardware structure)
-Internal process: Execution of programs in a given storage area
-external process: input/output of a given document
-process communication (information transfer):
-Initially all resources are owned by the basic operating System S
Message Passing & Semaphore are two major approaches for IPC.
In Semaphore System ,all the resources are EXPOSED, processes have the knowledge of existing resource, but when they try to access them, they may be blocked.
In Message Passing System: resources are passed as message between different processes.
Design a system in which mode of operatin could be changed.(This means it will make a general system to support anything)
Process:
The system only has two layers: Process & Nucleus (software extension of hardware structure)
-Internal process: Execution of programs in a given storage area
-external process: input/output of a given document
-process communication (information transfer):
- message buffering
-Scheduling: round-robin
- Each process has message buffers and message queue.
- We know receiver process, but semaphore doen't know who will use that. The disadvantage is also obvious, additional buffers will be used and managed
-Initially all resources are owned by the basic operating System S
Message Passing & Semaphore are two major approaches for IPC.
In Semaphore System ,all the resources are EXPOSED, processes have the knowledge of existing resource, but when they try to access them, they may be blocked.
In Message Passing System: resources are passed as message between different processes.
评论