Operating System Fundamentals Week 4 NPTEL Assignment Answers 2025

Need help with this week’s assignment? Get detailed and trusted solutions for Operating System Fundamentals Week 4 NPTEL Assignment Answers. Our expert-curated answers help you solve your assignments faster while deepening your conceptual clarity.

✅ Subject: Operating System Fundamentals
📅 Week: 4
🎯 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 4 NPTEL Assignment Answers

🚀 Stay ahead in your NPTEL journey with fresh, updated solutions every week!

NPTEL Operating System Fundamentals Week 4 Assignment Answers 2025

1. A context switch in an operating system refers to:

(A) Killing the currently running process and loading the state of another process
(B) Saving the state of the currently running process and loading the state of another process
(C) Multitasking with a fixed time slice given to the processes to execute
(D) None of the above

Answer : See Answers

2. Which of the following system call is used to pause the execution of a program, thread, or process for a specified amount of time?

(A) forkO
(B) execlo
(C) exito
(D) sleep()

Answer :

3. What is a “critical section” in the context of inter-process communication?

(A) A section of code that can be executed by multiple processes simultaneously
(B) A section of code where only one process can execute at a time
(C) A section of code that is used for input and output operations
D) None of the above

Answer :

4. A code has n sequential fork calls. How many child processes will be created?

(A) 2n
(B) 2n – 1
(C) logzn
D) n2 – 1

Answer : 

5. In a producer-consumer problem, what does the producer do?

(A) Consumes data from a shared buffer
(B) Produces data and places it into a shared buffer and does not wait for the consumer to fully consume the items
(C) Produces data and places it into a shared buffer and waits for the consumer to finish from the shared buffer
(D) Controls the access to the shared buffer

Answer :

6. Which of the following is NOT shared between the threads in the same process?

(A) Global variables
(B) Heap memory
(C) Stack
(D) None of the above

Answer : See Answers

7. Which of the following is NOT a characteristic of the pipe in IPC?

(A) It is used to create a unidirectional communication channel between processes
(B) Pipes are typically used for communication between related processes
(C) Pipes require a shared file system
(D) None of the above

Answer :

8. What is the primary purpose of thread synchronization?

(A) To improve the performance of individual threads
(B) Preventing data inconsistencies and race conditions
(C) To reduce the number of context switches
(D) To allocate more memory to threads

Answer :

9. Number of parameters that can be passed to a system call is virtually unlimited for

(A) Block-based parameter passing
(B) Stack-based parameter passing
(C) Both block- and stack-based parameter passing
(D) None of the other options

Answer :

10. Which of the following system calls is not related to the shared memory interprocess communication?

(A) shmgetO
(B) shmatO
(C) shmdtO
(D) None of them

Answer : See Answers