Unit 6 : CPU Scheduling Flashcards
(92 cards)
What is a process? ( 2 )
- A program in execution which progresses in a sequential manner
- It is a unit of work with a unique process identification
What does process require?
- Requires resources like memory, CPU time and files to complete the task
When are resources allocated?
- When a process is created or while in execution
Who creates and deletes user and system processes?
- Operating System
What is the state for process and program ( active / passive ) ?
- Process
- Active
- Program in Execution
- Program
- Passive
- Unused when the files isn’t loaded into memory
How does operating system keeps track of processes ?
- Uses Process Table
- Task Manager
- Activity Monitor
List out the steps for process state diagram and the term used ( Graph )
- New - ( admitted ) -> Ready
- Ready - ( Scheduler Dispatcher ) -> Running
Running - ( Interrupt / Time Out ) -> Ready - Running - ( I/O or Event wait ) -> Blocked
- Blocked - ( I/O or Event Completion ) -> Ready
- Running - ( Exit ) -> Terminated
What will be changing when a program executes?
- States
What is the new stated in Process State Diagram?
- A process has just been created
What are the reasons for process creation?
- New batch job
- Interactive Logon
What will happen when the task is created?
- It will changes from New to Ready processing state
What is the ready state in ProcessState Diagram?
- The process is waiting to be assigned to a processor
What is the Ready -> Running State in Process State Diagram
- Instructions are being executed
What is the state that the process is using the CPU?
- Ready -> Running
What are the factors for the number or running processes
- Depend on the number of processors the computer has
What can the running process possibly become ? ( 3 )
- Blocked
- Ready
- Terminated
Why doies the Running process become Blocked ? ( 2 )
- The process itself cannot execute because it is waiting for an I/O operation to complete
- Waiting for some external event to happen
When will Running process moves to the Ready state? ( 3 )
- A process has reached its maximum allowable time for uninterrupted execution
- A process needs a resource that is not immediately available
- A process needs an I/O operation before continuation
What is the term when Blocked state moves to the Ready state?
- When the event which the process was waiting for occurs
When the Running state process moves into the Terminated state?
- The process has completed
- The process has been aborted
What are the reasons for process termination?
- Normal Completion
- Invalid Instruction
- Memory Unavailable
What will returned to the operating system upon termination?
- Control
What is each process presented as in the Operating System?
- Process Control Block
What does Process Control Block do? ( 3 )
- Keeps track of each process
- Contains information associated with a specific process
- Serves as a repository of any information that may vary from process to process