你能访问.net Compact Framework中的Thread State吗?

Ali*_*zza 2 c# compact-framework

是否有可能在紧凑的框架3.5中获取线程状态信息?

Thread th=new Thread(new ThreadStart(DoIT));
th.Start();

Thred.sleep(1000);
th.??? // is thread running, suspended, etc.?

void DoIT(){
  //do stuff in here and exit after some second
}
Run Code Online (Sandbox Code Playgroud)

Sli*_*SFT 7

根据MSDN论坛,官方不支持.

建议的解决方法:使用Join(0)并检查返回标志. - 终止, - 仍在运行