Processes
– Process state: new, ready, …
Download 0.8 Mb.
|
os eng
- Bu sahifa navigatsiya:
- – Memory-management information
- PROCESSES
- Two Types of Context Switch
- CPU Switch From Process to Process
– Process state: new, ready, …– Program counter: indicates the address of the next instruction to be executed for this program.– CPU registers: includes accumulators, stack pointers,– CPU scheduling information: includes process priority,pointers to scheduling queues.– Memory-management information: includes the value of base and limit registers (protection) …– Accounting information: includes amount of CPU and real time used, account numbers, process numbers, …– I/O status information: includes list of I/O devices allocated to this process, a list of open files, …PROCESS CONTROL BLOCK PROCESSESThe act of Scheduling a process means changing the active PCB pointed to by the CPU. Also called a context switch.
Scheduling Components Context Switch Two Types of Context Switch
CPU Switch From Process to Processqueue. If CPU is executing process P0 and process P1 is in wait state. If an interrupt occurs for Process P0, the operating system suspends the execution of the first process, and stores the current information of Process P0 in its PCB and context to the second process namely Process P1. In doing so, the program counter from the PCB of Process P1 is loaded, and thus execution can continue with the new process. Let us understand with the help of an example. Suppose if two processes P0 and P1 are in ready queue. Suppose if two processes P0 and P1are in ready Download 0.8 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling