GATE / CS ARCHIVE

GATE CSE 1996 / QUESTION 1.19

Meaning of a critical section

Operating Systems · Synchronization & Concurrency · Full GATE CSE 1996 paper

GATE 1996, Q1.19 1 mark · MCQ
Report issue

Synchronization & Concurrency

Question 1.19, GATE 1996: What distinguishes a critical section of a program?
Tap to enlarge
Your answer
Answer & solution

Answer: C: access to shared resources (no official key was published)

A critical section is code that accesses shared state or a shared resource in a way requiring coordination with other concurrent executions. Uncontrolled overlap can violate an invariant, so a mutual-exclusion mechanism is typically needed. The definition does not require a semaphore specifically: locks, monitors, atomic operations or other protocols may enforce the required property. Nor is every short or computationally important block a critical section. The shared-resource access is the relevant characteristic, C.

Original paper, page 3