🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

FileWriter synchronization

#17197
From: Michael Andres
Date: Tue, 01 Dec 1998 00:00
12 lines
1057 bytes
HI,

     A java question:  Consider a static File object that many different
threaded objects have access to.  Now if I set up a FileWriter on this
file in one of the objects, does it necessarily prevent any other thread
in another object from obtaining a FileWriter on this same file until
the first thread releases it's FileWriter?  I tested this with a few
cases and it appears to be true, but I cannot find any documentation
stating this is how it works.

Any help is appreciated.
Mike Andres
Technical Details
Message-ID: <36643B9A.35336197@tc.umn.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5372dfc83620ab5e,start
X-Google-Attributes: gidf74b3,public
From: Michael Andres <andr0023@tc.umn.edu>
Subject: FileWriter synchronization
Date: 1998/12/01
Message-ID: <36643B9A.35336197@tc.umn.edu>
X-Deja-AN: 417519573
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Reply-To: andr0023@tc.umn.edu
Newsgroups: borland.public.jbuilder.java.language