Question OS-SYNC-0001
EasyWhat is a critical section?
- A.
A section of memory reserved for the OS
- B.
A part of code that accesses shared data and must not run in two processes at once
- C.
Show answer and explanation
Answer: B
Code that reads or writes shared resources is a critical section; only one process or thread should execute it at a time.