lkml.org 
[lkml]   [2008]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Any lightweight way for one thread to force another thread to suspend execution?
From
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



\
 
 \ /
  Last update: 2008-06-22 03:59    [W:0.080 / U:26.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site