No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
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?
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]
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 …
The End.
jyh5