[Mono-devel-list] Question Threads and Locks

Dick Porter dick at ximian.com
Tue Jan 18 12:01:25 EST 2005

On Tue, 2005-01-18 at 16:23 +0100, Christoph Stiedl wrote:
> Hi,  
> I truly need your help because I need to hurry up with my design 
> and prototype implementation, therefore I repeat my question: 

>   Before I can start coding I need your help concerning threads:  
>   On several places in the code there are "EnterCriticalSection"  
>   statements, but until now I couldn't figure out which things need to be  
>   protected when accessed and which not. It seems that only writing is  
>   protected by mutexes and not reading - am I right?  

I don't mean to be rude, but this question suggests that you need to
read an introduction to multi-threaded programming.  It doesn't have to
be a .net-specific text, but ".NET Multithreading" by Alan L. Dennis
(ISBN 1-930110-54-5) is recommended on our web site.

>   Which functions are called by multiple threads and which ones are called  
>   only by the starting thread --> to see which ones need synchronization  
>   --> or is synchronization only done by synchronizing the access to  
>   shared data structures. Which datastructures are shared?  
>   Is there any documentation about it?   

And this one just needs you to read through the code.

- Dick

More information about the Mono-devel-list mailing list