Data Concurrency - Critical Section (Protected Region)

Data System Architecture

About

A critical section is the parts of a program (piece of code) that cannot be executed by more than one process (thread) at a time.

It's also known as:

  • a critical region
  • or protected section

A critical section typically accesses a shared resource such as a data structure, a peripheral device, or a network connection would lead to unexpected or erroneous behavior (race condition, thread interference), if it was accessed by multiple (concurrent) thread and therefore need to be protected in ways that avoid the concurrent access.

Documentation / Reference





Recommended Pages
Data System Architecture
Data Concurrency - Happens Before relationship

The happens-before relationship is simply a guarantee that memory writes by one specific statement are visible to another specific statement. The results of a write by one thread are guaranteed to be...
Java Conceptuel Diagram
Java Concurrency - Happens-before Relationship

in Java The following actions create happens-before relationships: synchronized construct. When a thread releases an intrinsic lock, a happens-before relationship is established between that action...



Share this page:
Follow us:
Task Runner