Question
In a bounded-buffer producer-consumer solution using counting semaphores 'full', 'empty', and a binary semaphore 'mutex', a buffer of size 8 currently holds 5 items, and no process is currently inside the critical section. What are the current values of the 'full' and 'empty' semaphores, respectively?
More IT Operating System Questions
- What is the output of the following Java code? String s1 = "Hello"; String s2 = "Hello"; System.out.println(s1 == s2);
- Which of one the below options are the two different types of bus topology ?
- In a database system, a dense index is one in which:
- What is the decimal value represented by the 8-bit two's complement binary number 10110101?
- A program compiles successfully but produces incorrect output for certain inputs. What type of error is this most likely to be?
- In a recursive subset_sum function, backtrack(index, current_subset, current_sum), to explore the option of *including* the current element arr[index], whi...
- Consider the following C code snippet: #include int factorial(int n) { if (n == 0) { return 1; } // ...
- A 2 GHz CPU averages 5 cycles per instruction. Ideal instruction throughput is approximately:
- What is the primary objective of the Producer-Consumer problem in concurrent programming?
- A system design decision requires that a process must request and be allocated all the resources it will ever need at once, before it begins execution, and...
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)