From owner-freebsd-arch Thu Sep 20 10:38:27 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id A374337B412 for ; Thu, 20 Sep 2001 10:38:20 -0700 (PDT) Received: (qmail 50528 invoked from network); 20 Sep 2001 17:38:19 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Sep 2001 17:38:19 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <15273.11874.366229.387658@nomad.yogotech.com> Date: Thu, 20 Sep 2001 10:38:06 -0700 (PDT) From: John Baldwin To: Nate Williams Subject: Re: sigsuspend() and KSE Cc: arch@FreeBSD.ORG, julian@FreeBSD.ORG Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 -- 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