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
~471 People Reached

3 Posted Topics

Member Avatar for OffbeatPatriot

I know you need a semaphore if you have two or more threads writing to a variable, but do you need them if you have one thread writing and all other threads reading?

Member Avatar for BestJewSinceJC
-1
149
Member Avatar for dumrat

Yes you need a lock. Only atomic reads (32 bits on a 32 bit machine, 64 bits on a 64 bit machine) do not need locks. .Net does provide a simple add and subract for simple data types. Reference here: [url]http://msdn.microsoft.com/en-us/library/system.threading.interlocked_members.aspx[/url]

Member Avatar for jyh5
0
135
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
187

The End.