top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is race condition? How does the race condition occur?

0 votes
515 views
What is race condition? How does the race condition occur?
posted Jul 3, 2015 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

A race condition is a situation when a device or system or process makes an attempt to perform two or more operations at the same time but because of the nature of the device or system, the operations must be done in the proper sequence in order to be done correctly.

In networking, a race condition occurs when two or more try to access the same channel
In a computer memory, a race condition occurs when a request to read and write data is received at the same time.
In multi threading, a race condition occurs when two or more threads can access shared data and they try to change it at the same time.

answer Jul 3, 2015 by Salil Agrawal
...