Professional Documents
Culture Documents
1. Does the task scheduling technique affect the hit rate of overall system? Explain.
Task scheduling technique does affect slightly on the overall system hit rate. The task scheduling is
been use to to provide good time-sharing performance and preempt a running process to let
another one run. When an I/O request for a process is complete, the process moves from the
waiting state to the ready state and gets placed on the run queue. However, a task scheduling is a
preemptive scheduler if it has the ability to get invoked by an interrupt and move a process out of a
running state to let another process run. There are 3 types of task scheduling technique which is
FIFO, Round-Robin and Priority-based. Each of them have their own drawback in the system. But the
big idea was realizing that you could preempt a process and let another process run and do this
quickly enough to give the illusion that many processes are running at the same time.
2. Find the hit rate in each of the following caches after 12 Simulation
Cache hit Rate % FIFO Round-Robin Priority-Based
(16,4) 44% 32% 44%
(16,8) 44% 32% 44%
(32,2) 44% 44% 44%
3. When does the round robin technique behave like the FIFO technique?
4. When can the priority-based technique behave like the round robin technique?