What is the primary purpose of the critical-section problem in process synchronization?

Options

  • A. To ensure that processes never execute instructions
  • B. To ensure safe access to shared resources by concurrent processes
  • C. To increase the physical memory capacity of the computer
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. To ensure safe access to shared resources by concurrent processes

Detailed Explanation

Explanation: A critical section is a part of a program that accesses shared data or resources. The critical-section problem deals with ensuring that concurrent processes do not incorrectly access shared resources. A correct solution should satisfy mutual exclusion, progress and bounded waiting.