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. System Hook
B. Critical Section
C. Shared Page Room
D. Deadlock Loop
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.
Explanation:
Parallelism refers to executing multiple threads at the exact same time on multiple cores; concurrency is about managing multiple tasks with possible overlap.
No comments yet. Be the first to start the discussion!