[2171] in java-interest

home help back first fref pref prev next nref lref last post

Re: Q's on File access API's in Pre-Beta

daemon@ATHENA.MIT.EDU (Bob Beck)
Tue Sep 26 15:40:09 1995

Date: Tue, 26 Sep 95 08:52 PDT
To: java-interest@java.sun.com
From: Bob Beck <rbk@ibeam.jf.intel.com> (by way of Bob Beck <rbk@ibeam.intel.com>)

At 04:14 PM 9/25/95 -0800, you wrote:
>>         3) There doesn't appear to be any API for locking files or portions
>> of files
>
>I'm not sure how we implement this in a platform independent way.

There should be something in the API, even if it's simple (e.g.,
non-mandatory lock of whole file).  If  all access to the file(s) are in a
single Java application, Java synchronization primitives should be
sufficient.  However, often there are multiple instances of Java apps and/or
other processes talking to the files; something simple like "lock whole
file" should be enough.  There are UNIX api's for this, and Win32 API's -
there must be some portable Java API for simple cases of file locking that
can be mapped to the expected platforms...
--
Bob Beck                rbk@ibeam.intel.com     CompuServe: 71674,106
Intel Corporation       (503)264-8856           AOL: RDBeck


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post