ET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of James Berry
Sent: Wednesday, April 05, 2006 7:32 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Dictionary multi-reader single writer
Hi
I have a Dictionary
I want to look up X's in my dictionary a lot from multiple threa
oguy.com
C# MVP, MCSD.NET, Author and Speaker
-Original Message-
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of James Berry
Sent: Wednesday, April 05, 2006 2:02 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Dictionary multi-reader
topics.
>[mailto:[EMAIL PROTECTED] On Behalf Of Peter Ritchie
>Sent: 05 April 2006 18:50
>To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
>Subject: Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer
>
>I, too, assumed James would require reads to be blocked during a write;
>ma
ames
>
>
> -Original Message-
> From: Discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter Ritchie
> Sent: 05 April 2006 18:50
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer
ing.
>
> Best wishes
> James
>
>
> -Original Message-
> From: Discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter Ritchie
> Sent: 05 April 2006 18:50
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: Re: [ADVANCED-DOTNET] Di
TECTED] On Behalf Of Peter Ritchie
Sent: 05 April 2006 18:50
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer
I, too, assumed James would require reads to be blocked during a write;
making ReaderWriterLock an excellent candidate.
Vance Morr
I, too, assumed James would require reads to be blocked during a write;
making ReaderWriterLock an excellent candidate.
Vance Morrison has a good blog entry on ReaderWriterLock (which also
references some of his excellent articles on multi-threading) that
discusses the performance of ReaderWriterL
ReaderWriterLock?
On 4/5/06, James Berry <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have a Dictionary
>
> I want to look up X's in my dictionary a lot from multiple threads. I
> want to add items to my dictionary occasionally from some of these
> threads. I would like the reads to proceed concurren
Hi
I have a Dictionary
I want to look up X's in my dictionary a lot from multiple threads. I
want to add items to my dictionary occasionally from some of these
threads. I would like the reads to proceed concurrently without
locking, but I am not sure of the right pattern - can anyone help?
Bes