Multiple choice

Semaphore operations are atomic because they are implemented with in the Operating System's

  1. shall

  2. kernel

  3. I/O

  4. hardware

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

Semaphore operations like wait and signal must be executed atomically to prevent race conditions in concurrent programming. This atomicity is guaranteed by implementing them within the operating system kernel, where interrupts can be disabled or synchronization primitives can protect the critical section.