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
-
Need help how to use itunes card to download music
Need help how to use itunes card to download music
If you want to add the iTunes card to your account, then in the iTunes app on the iPad you should be able to scroll to the bottom of the Music tab and there should be a Redeem button - there is more info here : http://support.apple.com/kb/HT1574
-
Need help -how to use a GUI to compile a file
hello peeps,
I have this problem, let's get directly into it, i have a program that has GUI with a Text Area that im going to copy a text file into it (using JFileChooser FileReader and readLine() ...) so i have radio buttons like (view, compile and execute) and an OK button to get the selected option, what i want to know is how to compile the file that is in the text area, like how to get to the MS-dos console and javac to start. i hope this description is clear, and i'll be very appreciative for any help!thanks for your response, but its not working it keeps on throwing IOException, i tried to put a direct string into it like (Runtime.getRuntime().exec("javac MyClass.java"); and same thing happend. Am i missing something? like is there something to add before calling that line of code? i did import Runtime
ok here is how my code looks like:
if(compile.isSelected())
try
//name of the file im pasting into the text area
String filename = file.getName();
Runtime.getRuntime().exec("javac" + filename);
catch (IOException e)
System.out.println("error compiling program");
} -
I have I pad one use iOS 5.1.1 i want update to iOS 8 itry a lot time but no possible i need help how ican doit.
The iPad 1 can not be upgraded beyond 5.1.1.
-
hii i need help i cannot use my apple id for download on app store because they say i need to verify my account but i don't know how so please somebody can help me? i try to resset my password but that don't help
is it asking for ur security questions?
-
Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro? All my apps I was used in my iPad, thanks guys!!!!
The Mac OS X and iOS versions are separate products
-
Mail server not responding. Need help how to verify my account
Mail server not responding. Need help how to verify my account
There are instructions on this page for how to create a new account without giving credit card details (the instructions won't work with existing accounts) : http://support.apple.com/kb/HT2534
Unless an account is created via those instructions then credit card details will need to be entered on it before the account can be used. -
I need help, How could I add Aliases to Local Administrator account via terminal commands???
I want to use commands to add alias for existing administrator account remotly by using ARD.
Thanks.Hi,
a Windows Domain Controller does not have any local user or groups. So you might add the user to the admin group at Domain level.
B RGDS,
Gregor
Edited by: Gregor Gasper on Jan 9, 2009 1:44 PM -
my Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem
Carlos-
Start by signing out and back in to see if it will see the subscription:
How to sign in and sign out of creative cloud (activate/deactivate)
If the apps are installed fine and close after launch see this link:
CC applications close immediately after launch
If the problem is something different, please let us know the error you see or what is happening on the screen so we can advise you on a solution
Pattie -
Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Here's the example:
WING
GAMES
MAJORITY
ThanksIf the third link you posted (the link containing the word "majority") does not look like the following then you inadvertently installed adware.
That particular page should resemble the following:
The word "majority" in the third paragraph should not be a link and should not have the green icon associated with it.
To learn how this may have occurred, and how to prevent it from occurring in the future, read How to install adware
Most so-called "news" websites are nothing more than entertainment outlets that cater to prurient interests, and contain advertisements that leave the user about three clicks away from installing junk. If you decide to frequent those websites, Safari's "Reader" feature helps minimize that exposure.
Try it: -
How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help
Try asking at ifixit.com. The iPhone is not considered user servicable. You're not going to get much help on an Apple sponsored forum.
-
Hello. I need help. I use Photoshop Elements 10 on my MAC but it no longer reads discs. Can I download it from the internet with my original package serial number? thanks
Yes, from here:
Download Photoshop Elements products | 13, 12, 11, 10 -
I have lost the use of my extension pannels, and need help recovering the use. I get a message that extensions failed to load. Why?
I've had that before when on a really slow Internet connection.
-
Need help trying to use close button and i really like to know why it off
need help trying to use close button and i really like to know why it off
And in English? You need to explain better.
Mylenium -
My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)
Maybe you are looking for
-
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
-
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