Brendan Ang

Search

Search IconIcon to open search

Race Condition

Last updated Nov 8, 2022 Edit Source

# Race Condition

Access to shared data from concurrent processes resulting in data inconsistency. This is due to context switches between concurrent processes which result in non-sequential order of execution.

Take 2 processes producer and consumer: