![]() |
Is it safe to have multiple threads add to or subtract from a quantity?
Say I have a single floating point number called result equal to 0 and two threads, one thread adds 4 and the other subtracts 2. Is there any possibility that result will be equal something other then 2 afterwards? If you want a more concrete example I ask this question because of a project I'm...
|
| All times are GMT -4. The time now is 10:53 AM. |
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.