g****y 发帖数: 212 | 1 A form will create 5 threads after it is loaded.
There is a button on the form that when pressed will call "Thread.sleep()" to
sleep for a while.
Question, Why other threads can't not move on when "button thread" or "main
thread" is sleeping? Any solution?
Thanks. |
k****i 发帖数: 1072 | 2 How do you know that other threads is not moving on?Do you really start the
threads before the main thread goes to sleep?
to
【在 g****y 的大作中提到】 : A form will create 5 threads after it is loaded. : There is a button on the form that when pressed will call "Thread.sleep()" to : sleep for a while. : Question, Why other threads can't not move on when "button thread" or "main : thread" is sleeping? Any solution? : Thanks.
|
g****y 发帖数: 212 | 3 Those threads are generating bebugging messages all the time.
I would know it if they were running.
"main
【在 k****i 的大作中提到】 : How do you know that other threads is not moving on?Do you really start the : threads before the main thread goes to sleep? : : to
|
s*i 发帖数: 5025 | 4 I just tested and no problem. Something wrong in your code.
the
"Thread.sleep()"
【在 g****y 的大作中提到】 : Those threads are generating bebugging messages all the time. : I would know it if they were running. : : "main
|