W
wesley
Hi List,
I have a question on collection synchronisation. For example I have an
ArrayList called myList and the code is like this:
lock (myList.SyncRoot)
{
// do update on myList
Monitor.PulseAll(myList.SyncRoot);
}
Question, do I need to do Monitor.PulseAll() in here? Because the code above
is potentially accessed by several thread.
Thanks,
Wes
I have a question on collection synchronisation. For example I have an
ArrayList called myList and the code is like this:
lock (myList.SyncRoot)
{
// do update on myList
Monitor.PulseAll(myList.SyncRoot);
}
Question, do I need to do Monitor.PulseAll() in here? Because the code above
is potentially accessed by several thread.
Thanks,
Wes