Multiple choice

The part of a program where the shared memory is accessed & which should be executed indivisibly, is called

  1. semaphores

  2. directory

  3. critical section

  4. mutual exclusion

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A critical section is a segment of code that accesses shared resources and must be executed as an atomic action to prevent race conditions.