S sandboy Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-08 #1 请问怎么才能在程序里实现类似C的Sleep功能? 还有,怎样才能在unix下查看正在运行的java进程? ps -ef看不到。
S shisam Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-08 #2 Thread.getCurrentThread.sleep(long millis) Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.
Thread.getCurrentThread.sleep(long millis) Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.