Results 1 to 2 of 2
  1. #1
    ashu261 is offline Member
    Join Date
    Feb 2008
    Posts
    2
    Rep Power
    0

    Cool intimating file(s) have reached/copied in directory

    hi all, can somebody suggest on how to awake a thread or group of threads (that were in sleep) as soon as file(s) (of specific pattern ) copied in a directory by another threads.
    Also I don't want to perform massage passing by thread that is coping files in that directory.
    Thanks in advance
    Ashutosh

  2. #2
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    6

    Default

    Don't keep the threads sleeping, make them wait on a monitor and then notify when the files are ready.
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

Similar Threads

  1. Is there a way to read a file directory
    By willemjav in forum Java Applets
    Replies: 3
    Last Post: 09-05-2011, 01:01 AM
  2. How to get Current Directory through File
    By Java Tip in forum java.io
    Replies: 0
    Last Post: 04-05-2008, 10:14 AM
  3. Replies: 0
    Last Post: 04-05-2008, 10:13 AM
  4. signaling file(s) have reached in directory
    By ashu261 in forum Advanced Java
    Replies: 0
    Last Post: 02-04-2008, 07:45 AM
  5. How to Move a File to Another Directory
    By Ada in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 01:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •