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

  1. Mutual Exclusion
  2. Progress
  3. Bounded Waiting

results matching ""

    No results matching ""