Which structural concept refers to a piece of code that must execute atomically and cannot be accessed by more than one process at any given moment? MCQ with Answer and Explanation

Which structural concept refers to a piece of code that must execute atomically and cannot be accessed by more than one process at any given moment?
A. Deadlock Loop
B. Critical Section
C. System Hook
D. Shared Page Room
Answer: Option B
Solution (By JKSSB Mock Tests)
The Critical Section is a structural segment of program code that accesses shared resources or variables and must not be concurrently executed by multiple processes.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
In Linux, what does the 'sudo' command do?
A. Shuts down the system
B. Changes the user's password
C. Allows a user to execute commands with superuser privileges
D. Switches the user to root

Correct Answer: Option C


Explanation:
sudo (superuser do) permits authorized users to run commands as the superuser or another user.

This question belongs to: Computer Operating Systems
Question #2
In Windows, the 'Registry' value type 'REG_DWORD' represents:
A. A 64-bit integer
B. A binary value
C. A 32-bit integer
D. A string

Correct Answer: Option C


Explanation:
REG_DWORD is a 32-bit numeric value; REG_QWORD is 64-bit; REG_SZ is string; REG_BINARY is binary.

This question belongs to: Computer Operating Systems
Question #3
In Linux, the 'nice' command is used to:
A. Change a process's nice value
B. Set the priority of a process (niceness value)
C. Run a command with a modified scheduling priority
D. All of the above

Correct Answer: Option D


Explanation:
nice sets the initial priority; renice changes priority of running processes; all affect scheduling.

This question belongs to: Computer Operating Systems