Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-06 Thread Kamen Lilov
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

Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-05 Thread Shawn Wildermuth
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

Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-05 Thread Peter Ritchie
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

Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-05 Thread Ryan Heath
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

Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-05 Thread Eric Means
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

Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-05 Thread James Berry
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

Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-05 Thread Peter Ritchie
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

Re: [ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-05 Thread Eric Means
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

[ADVANCED-DOTNET] Dictionary multi-reader single writer

2006-04-05 Thread James Berry
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