开发者

PThread monitoring

开发者 https://www.devze.com 2023-02-28 05:59 出处:网络
How does one get the status of a Pthread and what would be a good way to monitor the threads statuses continuously so that if anything goes wrong I can kill the other threads that are linked?

How does one get the status of a Pthread and what would be a good way to monitor the threads statuses continuously so that if anything goes wrong I can kill the other threads that are linked?

I have two threads, one depends on the constant calculation result and I want to monitor the threads and kill a thread which might end up runn开发者_如何学Cing alone.

What is a good way of doing this?

0

精彩评论

暂无评论...
验证码 换一张
取 消