阅读背景:

在一段时间后停止线程

来源:互联网 

I'm looking to terminate some threads after a certain amount of time. These threads will be running an infinite while loop and during this time they can stall for a random, large amount of time. The thread cannot last longer than time set by the duration variable. How can I make it so after the length set by duration, the threads stop.I'm looking to terminate some threads after a c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: