🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17205

Re: How thread-safe is a Vector?

#17205
From: Steve Horsley
Date: Wed, 02 Dec 1998 00:00
16 lines
1265 bytes
Thanks for your answers, folks. You have confirmed what I suspected 
(but could not be sure).

Belt-and-braces - I synchronized the vector while I took a clone, then
enumerated the clone after releasing the sync-lock, and everything is 
fine now. 

I expected someome to ask if I intended other threads to be adding and
removing elements to a vector that I was enumerating. If you're 
interested, the answer is yes - the enumerating thread is just a 
periodic scan for unanswered requests that need retransmitting.
If it's just been added, it's not old enough to need resending, and
if it's being removed it has just been answered.

Thanks again.
Steve.
Technical Details
Message-ID: <3665381C.6EC8@cwcom.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <365D4BD5.1AC0@cwcom.co.uk> <uemqkrtu6.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,51f3325897926eb9
X-Google-Attributes: gidf74b3,public
From: Steve Horsley <steve.horsley@cwcom.co.uk>
Subject: Re: How thread-safe is a Vector?
Date: 1998/12/02
Message-ID: <3665381C.6EC8@cwcom.co.uk>
X-Deja-AN: 417832280
Content-Transfer-Encoding: 7bit
References: <365D4BD5.1AC0@cwcom.co.uk> <uemqkrtu6.fsf@sds.no>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: steve.horsley@cwcom.co.uk
Newsgroups: borland.public.jbuilder.java.language