Processes (Part II) Flashcards
An operating system controls the course of execution that involves the process of determining an interleaving pattern for execution and allocating resources to processes. This can neither be in a running state or in a not running state
Two-State Process Model
When the OS creates a new process, it creates a process control block for the new process and adds the new process. Then, the process waits for an opportunity to execute
Not running state
The dispatch portion of the OS selects a particular process to run. Intermittently, the currently running process will be interrupted and the dispatch portion has to select other processes to run. The interrupted process returns to the queue in the not running state, while a completed process exits the system
Running state
The queue in the not running state would be in what arrangement?
First-in-first-out (FIFO)
What are the processes in the Five-State Process Model?
- New State
- Ready State
- Running State
- Blocked state/Waiting state
- Exit State
A process that has just been created and has not yet been admitted to the pool of executable processes by the OS
New State
A process that is prepared to execute when given the opportunity
Ready State
The process that is currently being executed
Running State
A process that cannot execute until some event occurs, such as the completion of an I/O operation
Block state/Waiting state
A process that has been released from the pool of executable processes by the OS, either because it halted, or it was terminated
Exit State
What are the three (3) principle states?
- Ready
- Running
- Blocked
A process can be placed in a suspended state by any of the following:
- The process itself
- A parent process
- The operating system