Question 31Asked in Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2+ 1 more paper
The term "race condition" in parallel programming refers to:
AA competition between processes to terminate first
BA competition between processes to access shared resources
CA situation where a process is stuck in a loop
DA situation where processes are running sequentially
Show answerHide answer
Correct answer: (B) A competition between processes to access shared resources
Explanation
A race condition occurs when processes access shared data concurrently and the result depends on the order of access, i.e. they compete for shared resources.
From Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 2