Forum Navigation
exception in multithread env
Moderators:
kris
Posted: 03/21/09 01:22:28 Modified: 03/21/09 01:28:26The following prog can't terminated, is there any way to terminate a multithread program or get the exception info at least? I think it's important when programming in mutlithread.
import tango.core.Thread; void test() {
while(1) {
throw new Exception("test");
}
}
void main() {
auto thread = new Thread(&test); thread.start();
while(1) {
Thread.sleep(1);
}
}