Back to the 2024 paper
Similar questions
OPERATING SYSTEMWhat is Reader-Writer problem? Explain how Semaphore is used to resolve the problem of process synchronization.20247mOPERATING SYSTEMWhat operations can be performed on a semaphore?20222mOPERATING SYSTEMDefine semaphore. Give a scheme for implementation of semaphore primitives.20197mOperating SystemWrite an algorithm for Readers-Writers Problem solution using Semaphores.20257m
PreviousConsider a system with five processes P0 through P4 and four resources type A, B, C and D. Using the Banker's algorithm answer that the system is in a safe state? | | Allocation | Max | Available | | :--- | :--- | :--- | :--- | | | A B C D | A B C D | A B C D | | P0 | 0 0 1 2 | 0 0 1 2 | 1 5 2 0 | | P1 | 1 0 0 0 | 1 7 5 0 | | | P2 | 1 3 5 4 | 2 3 5 6 | | | P3 | 0 6 3 2 | 0 6 5 2 | | | P4 | 0 0 1 4 | 0 6 5 6 | |NextWhat is Belady's Anomaly? Why LRU and Optimal Page Replacement algorithm doesn't suffer from this problem.