Need help with this week’s assignment? Get detailed and trusted solutions for Operating System Fundamentals Week 7 NPTEL Assignment Answers. Our expert-curated answers help you solve your assignments faster while deepening your conceptual clarity.
✅ Subject: Operating System Fundamentals
📅 Week: 7
🎯 Session: NPTEL 2025 July-October
🔗 Course Link: Click Here
🔍 Reliability: Verified and expert-reviewed answers
📌 Trusted By: 5000+ Students
For complete and in-depth solutions to all weekly assignments, check out 👉 NPTEL Operating System Fundamentals Week 7 NPTEL Assignment Answers
🚀 Stay ahead in your NPTEL journey with fresh, updated solutions every week!
NPTEL Operating System Fundamentals Week 7 Assignment Answers 2025
1. Which of the following is a famous synchronization problem that illustrates the challenge of resource allocation to avoid deadlock?
(A) The Readers-Writers problem
(B) The Dining Philosophers problem
(C) The Bounded-Buffer problem
D) The Producer-Consumer problem
Answer : See Answers
2. Which of the following conditions must be met for process Pi, to enter its critical section according to Peterson’s algorithm?
(A) The ‘turn’ variable is not equal to j OR the ‘flagli] variable is FALSE
(B) The tum’ variable is equal to j OR the ‘flagli] variable is TRUE
(C) The ‘turn variable is equal to j AND the ‘flagbi] variable is TRUE
(D) Both ‘flag[i] AND flagli] must be TRUE
Answer :
3. Which of the following is the primary characteristic of the “test _and_set” instruction used for process synchronization?
(A) It guarantees that a process will not enter a busy-waiting loop
(B) It reads a value from a memory location and stores a new value, all in a single, uninterruptible step
(C) It ensures that processes are granted access to a critical section on a first-come, first-served basis
(D) It can be implemented entirely in software without any special hardware support
Answer :
4. A counting semaphore is initialized to a value of 10. What is the final value of the semaphore after 12 P operations and 15 V operations have been performed, assuming no processes are ever blocked?
(A) 11
(B) 12
(C) 13
(D) 14
Answer :
5. Which of the following is the primary disadvantage of using busy waiting for process synchronization?
(A) It can lead to a deadlock between processes
(B) It is difficult to implement in most modern programming languages
(C) It ensures that the critical section is always available
(D) It wastes CPU cycles by continuously checking a condition
Answer :
6. In a single-processor system, two processes, Pl and P2 run concurrently. They share a variable X, initialized to 10. Process Pl executes the statement X=X+5 and P2 executes the statement X=X-3. If the execution is not synchronized. what are the possible final values of X?
(A) 7 only
(B) 12 only
(C) 15 only
(D) 7 or 12 or 15
Answer : See Answers
7. The Producer-Consumer problem can be solved using semaphores. Which of the following semaphore initialization schemes is correct for a bounded buffer of size N?
(A) mutex = 1, empty = N, full = 0
(B) mutex = N, empty = 1, full = 0
(C) mutex = 1, empty = 0, full = N
(D) mutex = 0, empty = N, full = 1
Answer :
8.

Answer :
9. Solution to critical section problem via semaphore generally contains a WAITS) at the beginning and SIGNAL(S) at the end of the critical section. If these two are reversed, the propertyles) violated is/are (select the closest answer):
(A) Mutual exclusion
(B) Progress
(C) Bounded wait
(D) All of the other options
Answer :
10. The test _and _set instruction (used for process synchronization) returns
(A) True
(B) False
(C) Equal to parameter passed
(D) None of the other options
Answer : See Answers


