wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Situation where two or more processes are reading or writing some shared data and the final result depends on who runs precisely, when are called

A
Race condition
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
Critical section
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Mutual exclusion
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Message passing
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Race condition

Situation where two or more processes are reading or writing some shared data and the final result depends on who runs precisely, when are called Race condition.

In operating systems, processes that are working together share some common storage (main memory, file etc.) that each process can read and write. When two or more processes are reading or writing some shared data and the final result depends on who runs precisely when, are called race conditions. Concurrently executing threads that share data need to synchronize their operations and processing in order to avoid race condition on shared data. Only one ‘customer’ thread at a time should be allowed to examine and update the shared variable.
Race conditions are also possible in Operating Systems. If the ready queue is implemented as a linked list and if the ready queue is being manipulated during the handling of an interrupt, then interrupts must be disabled to prevent another interrupt before the first one completes. If interrupts are not disabled than the linked list could become corrupt.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Management Information System
BUSINESS STUDIES
Watch in App
Join BYJU'S Learning Program
CrossIcon