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. Paging Allocation
B. Mutual Exclusion
C. Context Swapping
D. Spooling Routine
Answer: Option B
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 Linux command is used to find files that match a certain pattern?
A. grep
B. find
C. locate
D. which

Correct Answer: Option B


Explanation:
find searches for files in a directory hierarchy based on name, type, size, etc.; locate uses a database for faster search.

This question belongs to: Computer Operating Systems
Question #2
What is the term for the technique where a process is divided into smaller parts and executed in parallel on multiple processors?
A. Multithreading
B. Batch processing
C. Time-sharing
D. Parallel processing

Correct Answer: Option D


Explanation:
Parallel processing uses multiple processors to simultaneously execute multiple parts of a program, improving performance.

This question belongs to: Computer Operating Systems
Question #3
In Windows, the 'System Restore' uses which service to create restore points?
A. File History
B. Backup and Restore
C. Volume Shadow Copy Service (VSS)
D. System Protection

Correct Answer: Option C


Explanation:
System Restore leverages Volume Shadow Copy (VSS) to take snapshots of system files and registry.

This question belongs to: Computer Operating Systems