Operating System
106503Module 3: Inter-process Communication
Q1b. Under direct communication, each process that wants to communicate must explicitly name the recipient or sender of the communication. This mechanism is known as ______ (i) Naming (ii) Message Passing (iii) Mailboxes (iv) Chatting20242m
Module 3: Inter-process Communication
View this question on its own page →Under direct communication, each process that wants to communicate must explicitly name the recipient or sender of the communication. This mechanism is known as ______
(i) Naming
(ii) Message Passing
(iii) Mailboxes
(iv) ChattingQ1e. Which of the following mechanisms is NOT typically used to achieve mutual exclusion? (i) Strict alternation (ii) Event counters (iii) Message passing (iv) Virtual memory20242m
Module 3: Inter-process Communication
View this question on its own page →Which of the following mechanisms is NOT typically used to achieve mutual exclusion?
(i) Strict alternation
(ii) Event counters
(iii) Message passing
(iv) Virtual memoryQ1e. The Dining Philosopher Algorithm is a classic example of which problem? (i) CPU scheduling (ii) Memory fragmentation (iii) Process synchronization and deadlock (iv) File allocation20252m
Module 3: Inter-process Communication
View this question on its own page →The Dining Philosopher Algorithm is a classic example of which problem?
(i) CPU scheduling
(ii) Memory fragmentation
(iii) Process synchronization and deadlock
(iv) File allocationQ1f. To avoid race condition the maximum number of processes that may simultaneously be inside the critical section is: (i) No Limit (ii) Two (iii) Three (iv) One20232m
Module 3: Inter-process Communication
View this question on its own page →To avoid race condition the maximum number of processes that may simultaneously be inside the critical section is:
(i) No Limit
(ii) Two
(iii) Three
(iv) OneQ1h. What is the main problem that the "Critical Section" concept aims to solve in concurrent programming? (i) Memory overflow (ii) Infinite loop termination (iii) Race condition between processes (iv) Lack of CPU resources20242m
Module 3: Inter-process Communication
View this question on its own page →What is the main problem that the "Critical Section" concept aims to solve in concurrent programming?
(i) Memory overflow
(ii) Infinite loop termination
(iii) Race condition between processes
(iv) Lack of CPU resourcesQ1j. In Peterson's solution for two processes, which condition ensures mutual exclusion? (i) Both processes wait infinitely (ii) Only one process enters the critical section at a time (iii) Both processes enter the critical section together (iv) The process with a higher ID always wins20242m
Module 3: Inter-process Communication
View this question on its own page →In Peterson's solution for two processes, which condition ensures mutual exclusion?
(i) Both processes wait infinitely
(ii) Only one process enters the critical section at a time
(iii) Both processes enter the critical section together
(iv) The process with a higher ID always winsQ4. What do you understand by race condition? Give few example of arising of race condition in concurrent processing.201914m
Module 3: Inter-process Communication
View this question on its own page →What do you understand by race condition?
Give few example of arising of race condition in concurrent processing.
Q4a. What do you understand by critical section problem. Discuss the requirements that a solution to the critical section problem must satisfy.20227m
Module 3: Inter-process Communication
View this question on its own page →What do you understand by critical section problem. Discuss the requirements that a solution to the critical section problem must satisfy.
Q5. (a) Define semaphore. Give a scheme for implementation of semaphore primitives. (b) What do you mean by critical section problem? What is the solution to the critical section problem?201914m
Module 3: Inter-process Communication
View this question on its own page →(a) Define semaphore. Give a scheme for implementation of semaphore primitives.
(b) What do you mean by critical section problem? What is the solution to the critical section problem?
Q6a. What is Semaphore? Explain with algorithm the Dining-Philosophers Solution using Monitors.20247m
Module 3: Inter-process Communication
View this question on its own page →What is Semaphore? Explain with algorithm the Dining-Philosophers Solution using Monitors.
Q7a. State producer-consumer problem. Give a solution to this problem using semaphore. Justify that your solution guarantees mutual exclusion.20236m
Module 3: Inter-process Communication
View this question on its own page →State producer-consumer problem. Give a solution to this problem using semaphore. Justify that your solution guarantees mutual exclusion.
Q7a. Explain the Producer-Consumer problem and discuss how semaphores can be used to solve it.20257m
Module 3: Inter-process Communication
View this question on its own page →Explain the Producer-Consumer problem and discuss how semaphores can be used to solve it.
Q7b. Discuss critical section problem. Illustrate the classic software-based solution to this problem known as Peterson's solution.20238m
Module 3: Inter-process Communication
View this question on its own page →Discuss critical section problem. Illustrate the classic software-based solution to this problem known as Peterson's solution.
Q8b. Write an algorithm for Readers-Writers Problem solution using Semaphores.20257m
Module 3: Inter-process Communication
View this question on its own page →Write an algorithm for Readers-Writers Problem solution using Semaphores.
Q9d. Write short notes on: Peterson's solution20227m
Module 3: Inter-process Communication
View this question on its own page →Write short notes on: Peterson's solution