What is Critical section?

A part of a program that operates on shared data and must be run by only one thread at a time. It is protected by a lock and kept as short as possible.

Field: Multicore & Synchronization

Critical section in the explanations

Questions that mention Critical section (3)

  1. What should you keep in mind when temporarily disabling (masking) interrupts during a critical section?
  2. Which describes a critical section?
  3. Which describes the idea of hardware transactional memory?

Related terms

Data race Transactional memory ABA problem Acquire-release semantics Atomic instruction Barrier synchronization Bus snooping Compare-and-swap Condition variable Deadlock

Back to the glossary