These operations suspend and resume the thread identified by th_p. A thread that has been suspended with td_thr_dbsuspend() is said to be in the "dbsuspended"
state. A thread whose "dbsuspended" flag is set will not execute. If an unbound thread enters the "dbsuspended" state and is currently assigned to a lightweight process ( LWP), then the LWP becomes available for assignment to a different thread.
A thread's "dbsuspended" state is independent of the suspension state controlled by calls to thr_suspend(3THR) and thr_continue(3THR) from within the target process.
Calling thr_continue(3THR) within the target process on a thread that has been suspended
during a call to td_thr_dbsuspend() will not cause that thread to resume execution; only a call to td_thr_dbresume() will do that.
|