avatar
.Net Thread question# DotNet - 窗口里的风景
g*y
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.
avatar
k*i
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.

avatar
g*y
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

avatar
s*i
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。