Computer Science EngineeringHard
The classic bounded-buffer producer-consumer solution with semaphores uses how many semaphores?
- A. 1
- B. 2
- C. 4
- D. 3
Correct answer: D. 3
It uses mutex for exclusion plus empty and full counting semaphores.
Practise more OS, DBMS, Networks & Computer Architecture (ISRO CS) questionsOS, DBMS, Networks & Computer Architecture (ISRO CS): notes and key points
More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions
- The convoy effect, where short processes wait behind one long CPU-bound process, is characteristic of
- A process of 212 KB is allocated a fixed partition of 500 KB. The internal fragmentation is
- If the time quantum of round-robin scheduling is made very large (larger than every burst), the algorithm behaves like
- How many page faults does LRU replacement with 3 frames produce for the reference string 1 2 3 4 1 2 5 1 2 3 4 5?
- A RAID 5 array has 5 disks of 1 TB each. Its usable capacity is
- Referential integrity between two relations is enforced in SQL by a