TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:5462] "Race Condition"?



On 21 Apr, pani@frontiernet.net wrote:
> schewe@tcfreenet.org wrote:
> It happens when more than 1 person/task/machine try to access
> the same resource or item simultaneously when they should actually
> use it one after the other.  Two people rushing to use the bathroom
> at the same time and getting stuck at the door is also an example
> of a race condition !  
> 
No, that is deadlock.

> In software and hardware that has to work concurrently it is
> very important that we serialize access to these shared resources
> and make sure that the right task/program gets hold of the resource
> at the right time. 
> 
You don't have to serialize access, only writes really need to be
serialized.

-- 
Jon Schewe
schewe@tcfreenet.org
http://tcfreenet.org/~schewe