Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Apr 1999 12:16:22 +0100
From:      Tony Finch <dot@dotat.at>
To:        smp@freebsd.org
Subject:   Re: concurrent select()s on listen socket broken under SMP
Message-ID:  <E10VZGo-0006yj-00@fanf.noc.demon.net>
In-Reply-To: <Pine.BSF.4.05.9904081452120.15426-100000@alive.znep.com>
References:  <14093.5670.813002.917842@chiark.greenend.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Marc Slemko <marcs@znep.com> wrote:
>On Thu, 8 Apr 1999, Tony Finch wrote:
>>
>> What breaks if I change the wakeup((caddr_t)&sb->sb_cc); in
>> sowakeup() (line 319 of uipc_socket2.c) to a wakeup_one()?
>
>That could just break a whole lot of things I think.  

:-)

>The basic reason behind this is (aside from the non-standard behaviour and
>fairness issues) is that select() can notify a process that multiple
>sockets are ready to be dealt with, while a process will probably only be
>able to deal with one at a time.

thttpd deals with all the ready descriptors between calls to select()

Tony.
-- 
f.a.n.finch  dot@dotat.at  fanf@demon.net


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E10VZGo-0006yj-00>