Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~459 People Reached
Favorite Tags
Member Avatar for OffbeatPatriot

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 …

Member Avatar for BestJewSinceJC
-1
145
Member Avatar for dumrat

I am using multiple threads that are doing work. I need the threads to update an integer once they finish processing. [CODE] //Lock i_Flag++; //Unlock [/CODE] Then [CODE] if(i_Flag == i_ThreadCount) //Do something. [/CODE] My question is whether I need to use locks around i_Flag++ because it is a simple …

Member Avatar for jyh5
0
128
Member Avatar for jyh5

I have been working with Monodevelop's C# on Linux. Pretty incredible. If you stick within the .net framework it seems to be really pretty complete. However, what if you wanted to call a native Linux function from a Linux library (eg using native Linux sockets instead of the .net provided …

0
186