Processes Flashcards
What is the CPU-I/O Burst Cycle
Process execution consists of a cycle of CPU execution (CPU executing the program code) and I/O wait (waiting for the result of I/O)
What is a charasteric of a CPU Bound Program
Program that has long CPU burst and short I/O wait
What is the charateristics of a I/O Bound Program
Program that has long I/O wait and short CPU burst
What is the ready queue
Set of all processes residing in main memory that are ready and waiting to execute
What is the I/O queue
Set of all processes waiting for an I/O device. Each device has its own I/O device queue
What does ht eProcess/CPU Scheduler do?
Select which process in ready queue need to be executed next by the CPU
What are the scheduling criteria?
Maximize CPU Utilization, Maximize Throughput, Minimize Turnaround Time, Minimize Waiting Time and Minimize Response time
What is CPU Utilization
Try to keep the CPU as busy as possible; i.e. executing as many processes as possible
What is throughput
The number of processes that are completed per time unit; i.e. complete execution of as many processes as possible
What is turnaround time?
The amount of time used to complete a process. Turnaround time = Execution time + Waiting Time
Waht is waiting time?
The amount of time a process is waiting in the ready queue
What is response time?
The amount of time used to output/display the first result
What is Multilevel queue Scheduling
Partitioning a ready queue into multiple queues. Each queue has its own priority. Foreground processes have higher priority over the background processes
What is IPC?
Inter-Process Communication. It is a communication among all processes
What the the advantages of IPC
Information sharing, Computation Speed-up, Modularity and Convenience