...
> int interlock, fd;
> void myfunction(void)
> {
> fd=open(/* something */);
> interlock=1;
> Sleep(250);
> }
>
> There is no guarantee that the result of the 'open' call will be written
> back to memory before the value of 'interlock' is. It's entirely possible
> that the value of 'interlock' will be written to memory before the call to
> 'Sleep' and the value of 'fd' will be written back only after 'Sleep'
> returns.
...
>
> If you absolutely need things to happen in a particular order, you must
> take steps to enforce it. Otherwise, all bets are off.
>
...
for example barrier(); !?!
Can that happen in user mode too? If yes, is there a barrier() function
in user mode?
Reto
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:25 EST