Need help: how to use "FileLock"

Hi,
I would like to be able to read the file at any time, but when
write is acquired (assuming the lock is released), no read is allowed
until the lock for the write is released.
How to use FileLock to accomplish this scenario?
Any input is appreciated.
Thanks,
Pin

I would suppose that the first step would be to determine that the OS you are working on actually supports that...from the java docs...
Platform dependencies
Whether or not a lock actually prevents another program from accessing the content of the locked region is system-dependent and therefore unspecified.

Similar Messages

Maybe you are looking for

  • How can I get an item and it's attachments from the current list using SP's JavaScript Client Object Model on newform.aspx?

    I only recently learned/read about SharePoint's JavaScript Client Object Model. I'm reading online trying to figure this out but not having much luck. On newform.aspx (and dispform.aspx) I want to get the current list, the last item created, and it's

  • Dynamic configuration of Adpater in SAP PI

    Hi, I have a requirement where in I have to dynamically configure connection adpater in SAP PI 7.1 EHP 1,  the configuration data will be pulled form database on the bases of the message content. Thanks in advance. Gautam

  • TABLE OR VIEW does NOT

    if I run the following query from sys user then get the error SELECT COUNT(1) FROM SCOTT.USER_TABLES ORA-00942: TABLE OR VIEW does NOT exist why it is so ??

  • Serious Problem with Curve 8900

    Hello. A have a Curve 8900 phone which was on the contract with T-Mobile a while back. I bought it like new. It was used a bit, but never dropped or anything so hardware is perfectly fine and it did work while it was with the previous owner on the co

  • VERY URGENT - Adobe forms with email problems

    I THERE - I AM A ADOBE FORMCENTRAL CLIENT I HAVE MY PAYEMENTS ON DAY BUT FOR SOME REASON THE ADOBE STOP RESENDING TO MY EMAUIL ACOUNT AND TO MY CLIENTS  EMAIL ACCOUNT THE SUMARY OF THE FORM THAT IS SUBMITED. THIS IS VERY URGENT THAT BE FIXED FROM YOU