Chapter 16 Flashcards
What is Round Robin (RR) algorithm
Each process gets a small unit of CPU time, called time slice or quantum, which is usually 10-100milliseconds. After this time has elapsed, the process is preempted and added to the end of the ready queue.
`What is context switch latency
The time required by a process to taken it back from process, we call this process context switch too. So time take for context switch is context switch latency.
What happen when quantum is large
process will become like First in first serve
What happen when quantum is small
Context switch latency will increase
What should be the context switch time
Context switch time should be 10% of quantum size
What are multilevel queues scheduling
We partition ready queue in multiple queues. When a process comes, it goes to any one queue. Every queue has its priority and scheduling system.
What are 2 types of scheduling in multiple queues
- Fixed priority scheduling: Giving absolute priority of queues. So one queue will end the processes and then focus will be shifted to another queue. This could result in starvation
- Time slice: We divide time for queues. In this way, there will be no starvation.