Question 21Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

Which of the following statement is true about semaphore? I. It can be implemented using software

Which of the following statement is true about semaphore? I. It can be implemented using software II. It can be implemented using hardware
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (C) Both I and II

Explanation

Semaphores can be implemented in software (e.g., with OS/kernel code or algorithms like Peterson's) and with hardware support such as test-and-set or atomic instructions.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 21 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. 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.