A community member has associated this post with a similar question:
Thread Api's
Only moderators can edit this content.
Thread Suspension and Resuming
Sharath
0
Reputation points
I used suspendThread and resumeThread APIs to stop and start the threads, whereas my use case is to lose the stack for the thread and restart it.
Do we have any APIs to restart threads where global or static data is not lost while the stack is cleared?
but here I need to restart the same thread to avoid losing any global/static memory associated with it.
I'm looking for how can we clear the stack of a thread on an event, keep the thread suspended, and then resume it.
{count} votes