aspose file tools
The moose likes Beginning Java and the fly likes problem to block a method until a line complete. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "problem to block a method until a line complete." Watch "problem to block a method until a line complete." New topic
Author

problem to block a method until a line complete.

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Hi
Thank you for reading my post.
I have a function which in one line of the function i should wait until a another job complete.
write now i used a thread that i write the another job logic into it.

in current function i call


but it get out of the function after i call anotherJob.start()
meanwhile i want the method to block until anotherJob complete.

can some one give me a help with this?
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
look at the join method
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: problem to block a method until a line complete.
 
Similar Threads
AJAX : How can I set response type other than 200 ("OK") in Server Response
inconsistent ajax calls to servlet functions
Threads Notes for Exams
Restrict multiple calls of function
Stack over flow error not in try/finally block