EXAMRADAR

Question: In bounded buffer problem Which of the following Assumption Stands TRUE: <ol> <li>I. We assume that the pool consists of n buffers, each capable of holding one item.</li> <li>II. The mutex semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to the value 1.</li> <li>III. The mutex semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to the value 0.</li> <li>IV. The empty and full semaphores count the number of empty and full buffers.The semaphore empty is initialized to the value n; the semaphore full is initialized to the value 0.</li> <li>V. The empty and full semaphores count the number of empty and full buffers.The semaphore empty is initialized to the value 0; the semaphore full is initialized to the value n.</li> </ol>  

Answer:

In problem, the producer and consumer processes share the following data structures:

 

int n;

semaphore mutex = 1;

semaphore empty = n;

semaphore full = 0

 

We assume that the pool consists of n buffers, each capable of holding one item.

The mutex semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to the value 1. The empty and full semaphores count the number of empty and full buffers. The semaphore empty is initialized to the value n; the semaphore full is initialized to the value 0.

MCQ: In bounded buffer problem Which of the following Assumption Stands TRUE: <ol> <li>I. We assume that the pool consists of n buffers, each capable of holding one item.</li> <li>II. The mutex semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to the value 1.</li> <li>III. The mutex semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to the value 0.</li> <li>IV. The empty and full semaphores count the number of empty and full buffers.The semaphore empty is initialized to the value n; the semaphore full is initialized to the value 0.</li> <li>V. The empty and full semaphores count the number of empty and full buffers.The semaphore empty is initialized to the value 0; the semaphore full is initialized to the value n.</li> </ol>  

Correct Answer: A. 1,3,5

Explanation:

In problem, the producer and consumer processes share the following data structures:

 

int n;

semaphore mutex = 1;

semaphore empty = n;

semaphore full = 0

 

We assume that the pool consists of n buffers, each capable of holding one item.

The mutex semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to the value 1. The empty and full semaphores count the number of empty and full buffers. The semaphore empty is initialized to the value n; the semaphore full is initialized to the value 0.

Discuss a Question

Related Questions

You may be interested in:

OS Process Synchronization MCQs

Recently Added Articles

AI vs Machine Learning: Key Differences Every Professional Should Know

Last updated on: February 13, 2026Posted by: ExamRadar

Office Cleaning Services That Elevate Sydney Offices

Last updated on: February 11, 2026Posted by: ExamRadar

Mental Health Support That’s Closer Than You Think

Mental Health Support That’s Closer Than You Think

Last updated on: January 7, 2026Posted by: ExamRadar

Columbus roofing company

Transform Your Home’s Exterior with Columbus roofing company

Last updated on: November 27, 2025Posted by: ExamRadar

What to Ask Before Booking TMS Therapy Near Me

Last updated on: November 7, 2025Posted by: ExamRadar

5 Trading Strategies to Minimize Risk

Last updated on: October 18, 2025Posted by: ExamRadar