On 7/16/06, Dan Kegel dank@kegel.com wrote:
On 7/16/06, Alexandre Julliard julliard@winehq.org wrote:
Well, kind of. Signals are only delivered when syscalls return, so they won't work well if the thread you pick to molest happens to not make any syscalls for a long time.
Signals certainly don't need system calls to be delivered.
I stand corrected. Signals get delivered on return from a system call *or* on return from an interrupt. (But on systems configured with CONFIG_NO_HZ, it could be a while before there's an interrupt, couldn't it?)
I guess the worst case is the signal will be delivered at the beginning of the next time slice, so that shouldn't be too long. - Dan