What is a 'SemaPhore' in the context of operating system synchronization? MCQ with Answer and Explanation

What is a 'SemaPhore' in the context of operating system synchronization?
A. A data transmission protocol over wireless channels.
B. An integer variable used to control access to a shared resource by multiple processes.
C. An encrypted password file.
D. A specialized hardware cable connecting monitors.
Answer: Option B
Solution (By JKSSB Mock Tests)
A semaphore is a protected variable or abstract data type used to synchronize concurrent process threads accessing common system resources.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
In Linux, the command 'rm -rf' is used to:
A. Forcefully remove directories and their contents recursively
B. Rename a file
C. Remove empty directories only
D. Read a file forcefully

Correct Answer: Option A


Explanation:
rm -rf (remove recursively and forcefully) deletes directories and files without confirmation, so it's dangerous.

This question belongs to: Computer Operating Systems
Question #2
Which of the following is a type of multiprocessing where each processor runs its own copy of the OS?
A. Symmetric multiprocessing
B. Asymmetric multiprocessing
C. Distributed processing
D. Symmetric clustering

Correct Answer: Option B


Explanation:
In asymmetric multiprocessing, a master processor runs the OS and allocates tasks to slave processors; each may have its own OS.

This question belongs to: Computer Operating Systems
Question #3
What process occurs during a 'Warm Boot' of a computer system?
A. The CPU is physically heated using diagnostic software tools.
B. The computer is reset or restarted using software instructions without cutting off physical electrical power.
C. The operating system is reinstalled entirely from an external installation drive.
D. The system is turned on from a complete powered-off state.

Correct Answer: Option B


Explanation:
A warm boot (rebooting) occurs when a computer is already running and is restarted using system options or keys without interrupting the electrical power supply.

This question belongs to: Computer Operating Systems