Re: lock used in thread and by event



<uupi_duu@xxxxxxxxx> wrote:

<snip>

What I have noticed that lock(_myList) does not stop and start waiting
if one of the threads have aquired it.

It will do if it's a different thread.

lock(_myList) goes allways through. So, can anyone explain that is
Event call same as a call executed in thread that owns lock(_myList)
or how this goes?

Can anyone clarify this to me?
Any documentation considering this issue?

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages


Loading