Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2001 10:38:06 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Nate Williams <nate@yogotech.com>
Cc:        arch@FreeBSD.ORG, julian@FreeBSD.ORG
Subject:   Re: sigsuspend() and KSE
Message-ID:  <XFMail.010920103806.jhb@FreeBSD.org>
In-Reply-To: <15273.11874.366229.387658@nomad.yogotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 19-Sep-01 Nate Williams wrote:
>> /*
>>  * Suspend process until signal, providing mask to be set
>>  * in the meantime.  Note nonstandard calling convention:
>>  * libc stub passes mask, not pointer, to save a copyin.
>>  ***** XXXKSE this doesn't make sense under KSE.
>>  ***** Do we suspend the thread or all threads in the process?
>>  ***** How do we suspend threads running NOW on another processor?
>>  */
>> 
>> Here's my opinion:
>> 
>> sigsuspend() just suspends the current thread.  When a signal is posted, it
>> wakes up all threads blocked on sigsuspend whose mask matches that signal. 
>> I
>> can see it still making sense, but perhaps being of limited usefulness in a
>> threaded program.
> 
> What has limited usefulness?  Being able to suspend all threads, or
> waking up all threads?

I'm not sure you would use sigsuspend in the same way in threaded programs, but
perhaps I'm wrong.  I suppose it also depends on what threading model you are
using.

> Nate

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010920103806.jhb>