A critical section is a program segment
- A. which should run in a certain amount of time.
- B. which avoids deadlocks.
- C. where shared resources are accessed.
- D. which must be enclosed by a pair of semaphore operations, P and U.
Answer: C. where shared resources are accessed.
Explanation: A critical section is code that accesses shared resources and must not be executed concurrently by multiple processes.