aspose file tools
The moose likes Threads and Synchronization and the fly likes Stop processing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Stop processing" Watch "Stop processing" New topic
Author

Stop processing

Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Hi,
In the main method, after doing some processes, start the Thread. In the run method check whether a file exists or not...
But this check is done after every 7 minutes...Wht is want is there any way out by checking the existence of file in the main method and when this file exist , do not hinder with the updateDB() method(as this is related to DB update), should execute fully...
Any help???

Thanks in advance

Mahesh
[ inserted CODE tags - PdH ]
[ April 04, 2002: Message edited by: Peter den Haan ]
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Manesh, I am sorry but after a couple of readings I'm still not sure what your question is exactly. The code you present looks like it should do what I think you're trying to do.
Can you rephrase the question, and/or post a code snippet that contains only what's relevant to the problem?
Thanks
- Peter
Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Peter,
Thanks for atleast replying...waited for a looong time....so worked around another logic...
Thanks anyway.
Mahesh
 
jQuery in Action, 2nd edition
 
subject: Stop processing
 
Threads others viewed
Threads
confusion in ThreadLocal example.
interrupt.......
threads
Problems using java.awt.Robot in a Swing Application (Enter Control+SPACE twice)
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture