public static void main(String[] args)
{
Test test = new Test();if(true){
out.println("gone to wait! " + new Time(System.currentTimeMillis()));
synchronized(test)
{
try
{
test.wait(1000*60*30);
}
catch(InterruptedException e)
{
e.printStackTrace();
}
}
out.println("come back! " + new Time(System.currentTimeMillis()));
}
}
Showing posts with label process. Show all posts
Showing posts with label process. Show all posts
Thursday, October 4, 2007
java waiting in main method
Linux sending process to background
ctrl+z
bg (enter)
bg (enter)
Subscribe to:
Posts (Atom)