Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-15-2008, 10:25 PM   #1
LQ Newbie
Registered: Sep 2008
Posts: 21

Rep: Reputation: 15
What is race condition?

Respected Sir,

Could you please tell me what is Race Condition and how it results. How can we prevent from Race condition?

Does this occur if we create more number of childs or it occurs if we keep creating both childs and parents?

Old 09-15-2008, 10:44 PM   #2
Registered: Sep 2008
Location: Mumbai, india
Distribution: ubuntu and hp-unix
Posts: 118

Rep: Reputation: 15
if multiple process concurrently access and modify a variable, then value of that variable depends upon the order of execution of those processes. in this case the programs may give unexpected result. this is known as race condition.

various synchronization mechanism is used to avoid race condition.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kded race condition during automounting SpelledJ Slackware 6 10-25-2007 02:51 PM
Race condition in /etc/rc.d/ with latest -current ? Yalla-One Slackware 1 08-06-2006 03:23 PM
race condition in close socket?? jwstric2 Programming 3 03-18-2005 06:01 PM
Kernel race condition exploit solution jlangelier Slackware 12 01-14-2005 11:15 AM
P-thread+race condition+mutex+Peterson's algorithm bangla_linux Programming 3 10-29-2003 04:01 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration