🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #580

Re: Object locking using ReaderWriterLock

#580
From: Marc Rohloff TeamB
Date: Fri, 13 Aug 2004 01:40
16 lines
1484 bytes
On Thu, 12 Aug 2004 18:40:11 +0530, Sunil.P.Thomas wrote:

> Hi Marc ,
>     What will happen  if
>              string sess = _loggedUsers[usn];
>             &
>             _loggedUsers.Remove(usn)  will be called simultaneously (Which
> is a part of RemoveUser() method).

As far as I understand (and I admit to not being a multithreading
expert) depending on the race condition 'sess' will either be null or
the session string.

-- 
Marc Rohloff [TeamB]
marc rohloff at myrealbox dot com
Technical Details
Message-ID: <guf6jqqsd06y.dlg@marcrohloff.40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <411af77e$1@newsgroups.borland.com> <1ggdzdtzuzi58$.dlg@marcrohloff.40tude.net> <411b6aef$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,c5e969dc4a2fb0d
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: Object locking using ReaderWriterLock
Newsgroups: borland.public.csharpbuilder.language.csharp
User-Agent: 40tude_Dialog/2.0.12.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <411af77e$1@newsgroups.borland.com> <1ggdzdtzuzi58$.dlg@marcrohloff.40tude.net> <411b6aef$1@newsgroups.borland.com>
Date: Thu, 12 Aug 2004 21:40:59 -0400
Message-ID: <guf6jqqsd06y.dlg@marcrohloff.40tude.net>
NNTP-Posting-Host: 4.224.231.124
X-Trace: newsgroups.borland.com 1092361236 4.224.231.124 (12 Aug 2004 18:40:36 -0700)
Lines: 16
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail