×

Loading...

I think the threshold is not less than 1000.

old (HH)
First let us ignore the time consumed by executing the code except Thread.sleep().
Second let us ignore the time deviation caused by the kick of the machine's time clock, other processes running, system management, etc.
Then the threshold of the sleeping time of the main thread should be 9999 or less, not less than 1000.
(#14246@0)
2000-11-12 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Toy code for Java Thread

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT杂谈