Race Condition
Definition
When there are multiple threads that try to access and manipulate the same data, the result may be different duo to the order of execution
Solution to Race Condition
By Critical Section method To make sure that in the critical section, there is only one thread accessing the data.
Properties of Critical Section
- Mutual Exclusion
- Progress
- Bounded Waiting