Re: lock used in thread and by event
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Tue, 25 Sep 2007 12:18:45 +0100
<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
.
- Follow-Ups:
- Re: lock used in thread and by event
- From: uupi_duu
- Re: lock used in thread and by event
- References:
- lock used in thread and by event
- From: uupi_duu
- lock used in thread and by event
- Prev by Date: Re: date picker in mozilla
- Next by Date: Re: Spot the bug (three line program) and a question on how to order execution flow in a OOP
- Previous by thread: lock used in thread and by event
- Next by thread: Re: lock used in thread and by event
- Index(es):
Relevant Pages
|
Loading