What is priority inheritance?

Ankur Kulhari

Consider three jobs: Job Name Priority H High M Medium L Low Suppose H is blocked by L for some shared resource. The priority inheritance protocol requires that L executes its critical section at H’s (high) priority. As a result, M will be unable to preempt L and will be blocked. That is, the higher-priority job M must wait for …

What is spin lock?

Ankur Kulhari

Locks are used in operating system to reserve critical section resources for mutual exclusion. Suppose a task is running and a little time (execution time) is left for its completion, That is: The running time left for it is less compared to the time that would be taken in blocking it and context switching. Under this situation it is not …

What is the difference between Swapping and Paging?

Ankur Kulhari

Swapping is a technique, used by medium term scheduler to send processes in waiting state from main memory to backing storage (called swap-out) and to bring processes which are ready to execute back into main memory from backing storage. Paging is a technique of memory management to allocate non-contiguous memory to a process. A process is divided into pages and …

Compare short term scheduler, medium term scheduler and long term scheduler.

Ankur Kulhari

S.N. Long-Term Scheduler Short-Term Scheduler Medium-Term Scheduler It is a job scheduler It is a CPU scheduler It is a process swapping scheduler. Speed is lesser than short term scheduler Speed is fastest among other two Speed is in between both short and long term scheduler. It controls the degree of multiprogramming It provides lesser control over degree of multiprogramming …