Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Halting Execution

  Asked By: Cameron    Date: Aug 24    Category: Java    Views: 690
  

I have a program that does a lot of automated processing, but
occassionaly needs to halt processing, and prompt the user for
information, and then continue execution. How can I do this?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Calais Bernard     Answered On: Aug 24

Use threads. Your automated  processing thread can grab data from a model. That
model will block until it has data to give. So when your thread asks for data
and that data has not yet been input by the user, the thread will be put in a
wait state and not notified until the user  has finished entering input. You can
read all about threads and monitors at java.sun.com.

 
Didn't find what you were looking for? Find more on Halting Execution Or get search suggestion and latest updates.




Tagged: