[2245] 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 (Eric Barna)
Wed Sep 27 09:42:24 1995

From: Eric Barna <ebarna@teachersoft.com>
To: java-interest@java.sun.com
Date: Tue, 26 Sep 1995 15:58:37 ()


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
..

-
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