File locking - is nio FileLock suitable for locking files inter-machine?

hi,
does anyone know if the nio FileLock class would be suitable for locking a directory on a network filesystem for access by different machines ?
the API seems to suggest it may work with some network filesystems, but doesn't explicitly say this would work between different machines
if this is the case, then is it advisable to implement a separate scheme for locking directories via "ticket" files left in the directory?
thanks,
asjf

[edsonw]
You need to find a Unix (or Windows; check your
environment) guru and check if the usage of the APIs
(Unix) fcntl (F_RDLCK or F_WRLCK or
F_SETLK64 or F_SETLKW64) and fcntl (F_UNLCK)
(Windows) LockFileEx or LockFile
(LOCKFILE_FAIL_IMMEDIATELY or LOCKFILE_EXCLUSIVE_LOCK)
that are used by the FileLock class is enough for your needs.i'm a bit thin on the ground in both windows and unix gurus at the moment (or at least ones who want to spend time looking into this :) - but see that this is an area where as the answer isn't a clear Yes, its probably better to find a simpler (and hackier) way of doing this?
[DrClap]
Or if you can't find that person or don't trust what
they tell you, then put together a little test program
and see what actually happens.<gasp> - this is exactly what I didn't want to do :) - its almost guaranteed that it will put me in a "It Worked On All The Scenarios I Tested" scenario..
i've implemented a lo-fi locking scheme that works by the presence or absence of a file (thats been touched in a configurable timeout period) it seems to work but seems very um, lo-fi..
thanks,
asjf

Similar Messages

  • Hi there, I got confused... which product is most suitable for me to use and i urgently have to send the file to someone. Please give me an advice.

    Hi there, i got confused.. which product is most suitable for me to use. Please advise.

    Hi hanachan1,
    If you're looking to send and track files, then Adobe Send is a great way to go. For more information, please see Send Large Files Easily - Select, Send, & Confirm & Track| Adobe Send
    Best,
    Sara

  • In iPhoto how do I stop files from auto resizing as they import? I don't want my files reduced to 72. The option to choose size on the export menu not suitable for up sizing, as you can't restore the quality removed?

    in iPhoto how do I stop files from auto resizing as they import? I don't want my files reduced to 72. The option to choose size on the export menu not suitable for up sizing, as you can't restore the quality removed.

    Short answer: They are not resizing, there is no quality lost. The dpi is only set when you decide what size you're printing at
    Longer answer:  Dpi means nothing in the digital world of your computer. There are no "inches" to have "dots per..." Size is measured in pixels. That's the same on your camera. It doesn't take 10 x 8 or 6 x 4 shots. It takes shots measured in megapixels. For instance 4,000 x 3,000 is a 12 megapixel camera.
    Using that example, that shot from that camera has 12 million pixels. So that's how many "Dots" there are. To decide the ratio of dots per inch, you now need to decide the "inches" part. And that's printing. Print at 10 x 8 and the dpi will be 4,000/10 or about 400 dpi. At 6 x 4 then it's 4,000/6 or 660 dpi. Work the other way: Print at 300 dpi and the resulting image will be about 13 inches on the longer side.
    So, your photo as a fixed number of pixels. Changing the dimensions of the print will vary the dpi, changing the dpi will vary the dimensions of the print.
    For more see http://www.rideau-info.com/photos/mythdpi.html
    Regards
    TD

  • System file not suitable for running msdos or windows files ???

    Please help...
    I download the itunes 6.0.5 setup.exe file.
    I open it and I see a pop up with Quicktime and Itunes on it. It quickly loads and then a new application opens (a C:// black box
    It quickly gets an error (16 Bit MSDOS Subsystem Box) error reads that the system file is not suitable for running msdos or window files. Close or Ignore (neither allow me to load 6.0.5
    I am using windows xp

    You use probably a UFS file system, right ? Then in this case, use the "-i" option with a value less as 8192. 8192 is the default value for a UFS filesystem that is between 3GB and 1 TB size.
    But if you want to store 10M of files, UFS will be limited to 1M per TB : 64-bit: Support of MultiterabyteUFS File Systems (System Administration Guide: Devices and File Systems)
    In this case, use instead UFS a ZFS filesystem that supports 2^48 entries !!!

  • Converting .MOV files (pre snowleopard) to format suitable for iDVD

    I purchased a new iMac and migrated my system across (from iMac5 (2.16 GHz) Mac OS 10.4.11 Quicktime 7.6.4 to a new imac 3.06 Mac OS 10.6.2 Quicktime 10.0).
    Some of my quicktime files play ok but others prompt me to download quicktime version 7. I really want to convert them to a format that iDVD finds acceptable.
    Any converters I have tried fail to read the files.
    Is there any s/w available to convert these files to formats suitable for iDVD ?

    I really want to convert them to a format that iDVD finds acceptable.
    iDVD will support any "conversion" compatible compression format supported by your current QT component configuration. Therefore, what you need to do is find out what compression format(s) are contained in the files that no longer play/are not being accepted by iDVD (or other QT apps).
    Any converters I have tried fail to read the files.
    If the converters rely on your installed QT components, that is to be expected. If such apps include there own built-in codecs, then the files are either not supported or possibly corrupted.
    Is there any s/w available to convert these files to formats suitable for iDVD ?
    I would normally recommend QT 7 Pro ($30) or MPEG Streamclip (free) to perform the conversions. However, if your files contain content not supported by your current QT component configuration, then the files cannot be converted until the specific required components are installed. (E.g., Filp4Mac ($) for windows, Perian (free) for DivX, XviD, and similar files, the QT MPEG-2 Playback component ($) for MPEG-2 video content, etc.) To learn which codecs are missing, you might try opening the Finder "Info" window for the file or see if the free VLC app will load/play/info the file content.
    Contrary to what many people think, there are many video compression formats (technologies) used and no single player plays everything without having the correct component support available. This is like trying to play a DVD on a CD player, or playing and Blu-ray on a DVD player.

  • JDev Locks up entire machine

    I have recently moved from a Dell Inspiron 8100 (Pentium III 1.0Ghz w/512mb of RAM)to a Inspiron 8200 (Pentium IV 1.6Ghz w/512mb of RAM) and I am now experiencing problems with my entire machine locking up when I run JDev. The lockup does not occur with any particular action. Sometimes it happens within a few minutes of opening Jdeveloper and other times I can run for an hour or so. It locks up the machine so that the only way to recover is to shut it off at the power switch. I have heard of issues with Pentium 4s and the JVM but I am not sure this is the case. I dowloaded the latest version from OTN and reinstalled JDev. I even went so far as to rebuild my entire workspace and all of the projects it contains. The lockup happens in both JDev RC2 and Jdev Version 9.0.2.829.
    Any ideas what could be causing this?
    Thanks,
    Brad Gibson

    Have you had any other problems with the Inspiron 8200? I have an 8100 (1.1MHz, 512Mb RAM), and I experienced lockups with the original BIOS. After upgrading the BIOS to a later revision, the lockups at least seem to have gone away. In my case, the lockups would happen doing lots of different thinks - using IE, or sometimes just copying lots of files. Needless to say, it was a very serious problem.
    From what I remember reading, the lockups were due to overheating issues, and the BIOS fixes adjusted the fans so they run more frequently. The problems seemed to occur more often when using third-party RAM (like I was), due to differences in the power consumption and size of the DIMMs. Hopefully Dell didn't build the 8200 with the same problem.
    I would suggest checking the Dell support newsgroups to see if other 8200 users are experiencing lockups with their machines, and if, they are, if there are known solutions.
    If this turns out to not be the case, please let us know, and we can investigate other possibilities.
    - John McGinnis
    Oracle9i JDeveloper Team

  • Locked into Time machine

    Has anyone else been locked into Time machine? I've just had to reboot due to being locked into Time machine, which by the way seemed unreasonably empty.
    I went into to look for a file from several months ago and could only find files for the last month or so, Time machine clearly registered that its database stretched back a couple of years but each entry was empty. When I tried to exit Time machine I couldn't. In the end I had to use the power button to force a restart.
    Is it just me or is OSX getting more and more flakey with each release. 10.3 was solid but since then (the switch to Intel?) the OS has been tripping up more and more.

    Hello, not sure how this might affect a TM drive, or not, but...
    Here is what i needed to do for my drive "320GB HD", the last command is just for clean up
    Open Terminal and type these commands carefully with the spaces & change 320GB HD to the name of your drive.
    sudo chflags 0 "/volumes/320GB HD"
    sudo chown root "/volumes/320GB HD"
    sudo chmod 1775 "/volumes/320GB HD"
    sudo -k
    That said, these should be sufficient to do the job:
    sudo chflags 0 "/Volumes/320GB HD"
    sudo chmod a+rx "/Volumes/320GB HD"

  • Is java suitable for hardware related programming?

    in general, is java suitable for hardware related programming?

    One small hurdle is that device driver writing often requires very specific machine instructions that are not directly available to any high level language. IN, OUT, LOCK (lock memory bus), VERR (Verify for Reading), RDMSR (Read Model-Specific Registers), move from/to memory without going through the MMU address mapping, ... (those are from x86, there are a few dozen of them.)
    In C, you'd write assembler glue. In Java, you'd write assembler glue and call it through JNI.
    So if you modify the question: "is Java + JNI suitable", the answer changes a bit. Still, threading and garbage collection are issues: often you can't have anything else happening in the computer when you are talking to a hardware device; it's often timing-dependent and any other parallel bus access migh throw the bus protocol off.
    Depends on the hardware, the operating system, and the Java (real-time Java may be required). Be prepared to write the lowest levels of communication in assembly; there is no other language for those bits.
    Would you consider controlling Lego Mindstorms hardware related? The low level bits are operating system services in C/C++/assembly, and the high level is Java.

  • DVD Burn problem. "Device error - the target device isn't suitable for use"

    Hello everyone,
    I initially had a lot of problems with PE8. However the nVidia driver update solved most of them.
    Just thought it was important to report success as well as failure!
    However one problem remains. I get the following error at the 96% mark while burning. "Device error - the target device isn't suitable for use". It is always at the 96% mark and the program is "compiling [something]" when this happens.
    Having searched this site I notice that user rgferg posted a similar problem 13 days ago but was redirected to repost in a different place, but never did.
    I have tried to burn a 1hr clip 4 times and every time I have selected the slower burn speed (8MB/s) as has been suggested. It seems that inferior media is a culprit, so I have bought some [quality] Verbatim DVD-R media to try in my Phillips SATA optical drive. I am sceptical this will work, but open minded nonetheless. I will give it a whirl when my computer has stopped capturing the VHS I am working on.
    Each time the burn failed the disk was automatically ejected and the burn process had actually started and progressed perhaps ~40% or so.
    This indicates to me that it is a drive sharing issue, rather than a media issue. Somewhere on this forum it suggests that I go through a 20+ step process and delete/disable every piece of software that can compete with Premiere among other things. IF I do this what do I burn with outside of Adobe? Do I have to get imgburn or whatever it was called? What if I like Nero? Nero 6 has worked great for me for 3 years.
    So given I am willing to uninstall my old optical drive burning software, who out there can recommened commercial software that for them creates a painless Adobe burning experience with no errors or conflicts? Perhaps there is another solution that I did not see on this forum?
    I am running Windows XP SP3. I have the latest nVidia drivers for my SLI GeForce 7600 GS cards. I have 3 monitors. RAID 0 SATA, 2GB RAM, Athlon X2 5400.
    Justin.

    OK been working through the list of 20 things Adobe recommends to fix DVD burn error. No luck yet:
    system meets minimum requirements
    Project size does not exceed disk capacity
    successfully burned project to DVD folder -thus skip to step 8.
      8.   Using new blank media for burning
      9.   Try different media and DVD burners. Bought Verbatim DVD-R. Don't have another DVD burner. Adobe's supported burner list is VERY short, so of course mine is not on it.
      10.  Uninstalled Nero 6. Did NOT uninstall Acronis True Image workstation or Lightscribe. These do not access the drive unless I say so!
      11.  Have not yet disabled startup items and services. This will take a lot of work and will leave to last. Deactivated Spybot thus far.....
      12.  Disabled IMAPI CD burning COM
      13.  DMA if available already set. Haven't set this in BIOS yet. I already think it is, but will check next boot.
      14.  Updated DVD firmware
      15.  Already updated nVidia drivers
      16.  Don't have any other DVD drives to disconnect.
      17.  MPEG workaround. Will resort to if required.
      18.  Disable Autoplay? XP only has "prompt me each time to choose an action". I have set this for ALL file types.
      19.  Have NOT refreshed the DVD drivers in the registry. This step involves uninstalling PE8. Will leave this as last resort.
      20.  Visit forums to see if other have the same problem. Hi guys
    So still working through some of the items above.
    Can anyone direct me to advice on how to write the encoded files sent to the hard drive, or the VOB files that PE8 failed to burn to a disk? Will the former work with DVD menus?
    What a process.
    Stay tuned.
    Justin.

  • I want to open excel spread sheets make additions and export back to pc users.  Is numbers suitable for this activity?

    I want to open excel spread sheets make additions and export back to pc users.  Is numbers suitable for this activity?  I am using a MACBook Air

    just read this in an other answer:
    Pages can open docx files, Numbers can open xlsx files. Each can export to  can export .doc or .xls to the newest Word or Excel format.respectvely, but not to the more recent .docx or .xlsx.
    Translation is not perfect in either direction. Numbers and Excel handle some similar features (eg. pop-up menus vs data validation) differently, and the translator cannot translate from one implementation to the other.
    If much of your work is going to be transferred between your machine and Windows machines running either MS Excel or MS Word, with editing taking place at both ends of the tunnel, then you'll probably be better off with Office, or one of the Office clones on the Mac end.

  • Device error -the target device isn't suitable for use. Solution found!?

    Hello everyone,
    I have received the following error many times on my machine for different projects when trying to burn to disk and folders:
    Device error -the target device isn't suitable for use.
    I have multiple hard drives with ~60GB, 40GB and 12GB. I have tried to burn 4.7GB discs and folders and 8.5GB folders.
    I have previously tried nearly ALL 20 troubleshooting items recommended by Adobe and have even changed to Verbatim media. None of these solved the problem.
    What did solve the problem, EVERY SINGLE TIME, was freeing up hard drive space or reducing the length of the project.
    You may look at the available hard drive space and THINK that you have enough. But you don't.
    Perhaps the remainder of this thread could be used to discuss the disk space requirements for projects. I can't seem to crack the formula. I just keep deleting/archiving files until the project works. I have ordered some new big HDD's to be rid of this error forever.
    Justin.

    While it is certainly possible that diskspace is one factor in getting the dreaded "target device isn't suitable message" (usually after lenghthy processing), it does not appear to be the only one.
    I got the message trying to burn a 3 minute video to a dvd on two seperate computers one running xp pro with 150Gb of spare disk space and one running W7 HP with 50Gb of spare space. Tryng to burn to a folder gave the same error.
    To me, this pointed to something in the app, or the project, so firstly I deleted the disk menu...burn completed ok. Re-instated a menu (different one)....burn failed. Removed one scene marker and the stop marker......burn completed ok. Re-instated stop marker......burn failed
    Am I missing something on the purpose of the stop marker?
    There was nothing obviously wrong with the project, although I will admit that I am new to PRE but am not a complete novice to video editing.
    The encoding process of the menu's (both passes) went ok, and it wasn't until it got to the "encoding media" phase that the error message appeared.
    It would certainly seem that more illuminating error reporting would be beneficial in this case, but it would also seem to be worth trying changes to the menus or markers to see if that fixes the error message.

  • Is quick time pro suitable for home movies?

    is quicktime pro suitable for home movies?

    is quicktime pro suitable for home movies?
    That depends on how you define "suitable" (the editing capabilities you want/need to use) and what you mean by "home movies" (the editing compatibility of the files you need/want to edit).
    QT 7 Pro does not add any additional codec components. It merely unl, ocks editing/conversion features not available to to base QT 7 player app. If you to convert, trim, merge, edit, mask, layer, and/or composite various forms of "compatible" data (up to 99 tracks), then it is a cheap alternative to full video editing apps/suites costing hundreds or even thousands of dollars. While it has many advanced capabilities and features, the utility often requires the user to perform many of the actions manually at a low or basic graphic user interaction level. If you are expecting QT 7 Pro to open files the base QT 7 player won't already open, then you will be diasappointed.

  • Is JMS based solution is suitable for the following:

    I an new to JMS. Im familiar with its basics (in theory and ran very simple examples).
    I was wondering if a clients server clients system, exchanging text messages and images is suitable for JMS or should I use a non J2EE component. The system should be able to serve about 100 users at the same time with a logic of whom should get certain messages.
    Thanks.

    The main question is number 1; for massive files (over 10-20Mb) you don't want to use 1 message per file; you either need to split it yourself into multiple messages or use some JMS Stream helpers like ActiveMQ has...
    http://activemq.org/JMS+Streams
    Decent JMS providers can handle massive load & high performance, federated networks, load balancing and reliability as well as things like throttling, flow control and so forth along with added features like JMX monitoring of queue depths & throughput rates so questions 2 and 3 can be supported whatever those numbers are - assuming you've got a decent provider and enough hardware :).
    For question 4; you've the option in JMS to choose your quality of service; whether to use persistence or not or to use queues or topics etc.
    I'd maybe make the questions
    1. How big are your images
    2. Do you need point to point or publish/subscribe?
    Though as Steve suggests its always worth testing that your load can be handled correctly by your middleware technologies & hardware.
    James
    http://logicblaze.com/

  • Which laptop is best suitable for me? Macbook Air 11 inch, Macbook Air 13 inch, or Macbook Pro 13 inch?

    I'm an 8th grader who does powerpoints, word documents, web browsing and light gaming, light movie editing on imovie, some ichat and some apps. Should I get a macbook air 11 inch 256gb and 8gb of ram, macbook air 13 inch 128gb and 8gb of ram or macbook pro 13 inch 8gb of ram 500gb hard drive?. Which one is most suitable for me? I need it to last 4-5 years.

    Strictly speaking, the size of the screen has nothing to do with a decision to install Windows on any Mac. It should work with the base 13" MBP, even with just 4GB ram.
    But it is more complex than to just "install windows"; first, you have to buy a copy of Windows. Any copies you have, even if on DVD, will not work (because the OS contains proprietary code based on the model and manufacturer of your Windows laptop.) Then you have to decide if you want a dual boot (meaning setting up another partition on the HD that holds only the Windows OS and files), or purchase Parallels, which you install as Apple software, then install windows "into" Parallels. If you use dual boot, you can only switch from one OS to the other by way of shutting down and re-booting. If you use Parallels, you can jump from one OS to the other just like switching to different programs in the Mac OS. Parallels runs under $40 these days, and MS Windows 7 Home Premium is ~$165 (both on Amazon).
    There are often business or academic reasons to have Win7 on a Mac, but each person should seriously consider whether buying a Mac so that you can install Windows is a sound decision. I mean, why bother with the Mac?  I first thought I would have to install Windows on my Mac, but found Mac versions of my critical programs, and learned how to use the many programs the Mac OS already provides to get the same, and often improved functionality over what I had with Windows.
    I know you will have a tough decision to make about this. And you are spending a great deal of money for an 8th grader (and for a lot of other people too). It's important to weigh all the factors, decide on your choice, and then make the purchase without having any doubts about your decision. Have confidence in your purchase, and move forward from there.
    One final note; I bought my first Mac machine only about 9 months ago. I've bought two more since then. And for each one, I bought the AppleCare warranty and have never regretted it. I won't know if I need it for repairs in a year or two, but just having an ability to call Apple at nearly any time, and have programs, functionality and OS behavior explained to me gives me real peace of mind. I may have to call AppleCare more than once to get a good answer, but in the end, the service has always come through for me. I suggest you consider this strongly.
    I hope my lengthy replies have been helpful; you've got a great treat ahead of you once you make the purchase!

  • MiniSAP - SE80 Prompts Error "Printer not suitable for job step..."

    Hi all,
    I bought an ABAP Objects book. I installed the MiniSAP. When I run SAP GUI and SE80, both with BCUSER and DDIC, it gives me error message "Printer not suitable for job step. Automatic printing not possible."
    If I double-click on the message, it does not show the description of the error message, instead it displays an Internet Explorer error message "The page cannot be found."
    Furthermore, the same error message, "The Page cannot be found", also appears in the area where the listbox and textbox for selecting Development Class, Program, Function Group, etc. Making these function becomes unavailabale. I cannot see the listbox and textbox in the Object Navigator. The only development class show is "$_TMP_BCUSER" (if I recall correctly). But nothing is in the development class.
    How do I solve this problem?
    OS: Windows XP Professional
    Browser Installed: Internet Explorer and Firefox
    Other info: I put incorrect IP Address in the Hosts file while installation was in progress. This created error. I then correct the IP Address in the Hosts file and resume installation. I still encountered error until I restarted my computer and resume installtion. I use IP Address 10.10.0.10.
    Thanks in advance.
    Regards,
    Goh Tiam Tjai

    I searched the solution in the other SDN sub forum (ABAP Programming). The following patch solves the problem.
    http://www.sap-press.de/download/dateien/473/sapgui_patch.zip
    Regards,
    Goh Tiam Tjai

Maybe you are looking for

  • System Running Slow-Disk Utility Shows Only 4GB Free - Help!

    what are some of the common things that can be deleted that newbies don't realize take up space? I am encountering the beach ball when I try to do things like go between web pages or launch applications, etc. It appears that I am showing only 4.3 GBs

  • File to BAPI scenario

    Hi guys, I have the following scenario: A file is picked up that has multiple rows and for each row that contains a material, I have to call a BAPI, which it was not possible to wrap inside an Idoc. Initially, I had increased the cardinality of the B

  • "Preview in Firefox" for pdf web pages but not for file links ?

    Hi, I like the preview pdf in Firefox feature but I seem to be having a bit of a problem with it. In options>applications I have the pdf entry set to preview in Firefox and when I click a link to pdf webpages they load in Firefox just fine. The probl

  • Date format should be YYYYMMDDhhmmss (Output sy-zonlo) format

    I am giving date 06/26/2009 format, but i want output in "YYYYMMDDhhmmss" format. is there any FM for this

  • Cisco Prime Infrastructure 2.2 UCS support (C24)

    Hi, I recently upgraded a CPI 2.1 server to 2.2 hoping that it would support monitoring and managing a customer's C24 server. Unfortunately I hadn't read the Supported Devices list (http://www.cisco.com/c/en/us/support/cloud-systems-management/prime-