A critical section is a program segment-
- A.which should run in a certain specified amount of time
- B.which avoids deadlocks
- C.where shared resources are accessed
- D.which must be enclosed by a pair of semaphore (wait and signal) operations
Show answer
Answer: C. where shared resources are accessed
A critical section is a piece of code that accesses shared resources.