lkml.org 
[lkml]   [2008]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Any lightweight way for one thread to force another thread to suspend execution?
From
Date
"Eric Smith" <eric@brouhaha.com> writes:
>
> What I've thought about so far (but haven't tested) for thread A
> to suspend thread B is to use a signal and two pthread conditions:

Any such mechanism will need a syscall, and it's unlikely that
any syscall will get much cheaper than a kill(SIGSTOP)

-Andi


\
 
 \ /
  Last update: 2008-06-21 16:07    [W:0.095 / U:1.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site