Which mechanism ensures that only one process can execute inside a critical section of code at any given time? MCQ with Answer and Explanation

Which mechanism ensures that only one process can execute inside a critical section of code at any given time?
A. Context Swapping
B. Paging Allocation
C. Mutual Exclusion
D. Spooling Routine
Answer: Option C
Solution (By JKSSB Mock Tests)
Mutual Exclusion (Mutex) guarantees that if a process is executing inside its critical section, no other processes are permitted to enter that code path.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which of the following is a feature of the NTFS file system?
A. Lack of journaling
B. File compression and encryption
C. Maximum file size of 4 GB
D. Case-insensitive filenames

Correct Answer: Option B


Explanation:
NTFS supports file-level compression, encryption (EFS), and journaling; it also allows large file sizes.

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

Correct Answer: Option C


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
Question #3
In Windows, the command 'diskpart' is used for:
A. Disk cleanup
B. Disk formatting
C. Disk partition management
D. Disk defragmentation

Correct Answer: Option C


Explanation:
diskpart is a command-line utility for managing disk partitions, volumes, and dynamic disks.

This question belongs to: Computer Operating Systems