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
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.