Question 144Asked in DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)

A semaphore is an integer variable that, apart from initialization, is accessed only

A semaphore is an integer variable that, apart from initialization, is accessed only through which of the following standard atomic operation?
  1. Arelease ( )
  2. Block ( )
  3. Cacquire ( )
  4. Dsignal ( )
Show answerHide answer

Correct answer: (D) signal ( )

Explanation

A semaphore is accessed, apart from initialisation, only through the atomic operations wait() (P) and signal() (V).

From DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM)

This is question 144 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.