Approaches to handle stuck std::thread and to restart new thread?

781 Views Asked by At

I am trying to optimize a C++ multi threading problem in which i have created three threads from the main function using std::thread

I want to know is there any approach by which I can handle situation like if one of the worker thread got stuck somewhere I want to know about it programmatically not by running and restart the stuck thread.

0

There are 0 best solutions below