• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

real world situation that use threads!

Jincuteguy

Senior member
Could anyone give me an example of a real world situation where the use of threads could lead to a race condition? thx.
 
Say you have a network server program which spawns a thread for each new connection. Each connection involves this program editing some file. Two people connect at almost exactly the same time, and now you could have two threads trying to write to the same file at once, which may not turn out so good.
 
Back
Top