Messages in this thread | | | Date | Sat, 21 Jun 2008 18:55:37 -0700 (PDT) | Subject | Re: Any lightweight way for one thread to force another thread to suspend execution? | From | "Eric Smith" <> |
| |
Andi wrote: > Any such mechanism will need a syscall, and it's unlikely that > any syscall will get much cheaper than a kill(SIGSTOP)
But is there a way for the process sending the SIGSTOP to wait until it has taken effect? I need a method to *synchronously* stop another thread. That's why I thought I probably needed something more elaborate than SIGSTOP, though I'd like to minimize the number of system calls required.
Thanks! Eric Smith
| |