From owner-freebsd-hackers Thu Jan 28 06:22:31 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA21954 for freebsd-hackers-outgoing; Thu, 28 Jan 1999 06:22:31 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from itp.ac.ru (itp.ac.ru [193.233.32.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA21940 for ; Thu, 28 Jan 1999 06:22:28 -0800 (PST) (envelope-from ks@itp.ac.ru) Received: from speecart.chg.ru (speecart.chg.ru [193.233.46.2]) by itp.ac.ru (8.9.1/8.9.1) with ESMTP id RAA03540; Thu, 28 Jan 1999 17:25:59 +0300 (MSK) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19990128081640.Q421@tar.com> Date: Thu, 28 Jan 1999 17:23:05 +0300 (MSK) Organization: Landau Institute for Theoretical Physics From: "Sergey S. Kosyakov" To: "Richard Seaman, Jr." Subject: Re: select(2) and threads Cc: freebsd-hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 28-Jan-99 Richard Seaman, Jr. wrote: > On Thu, Jan 28, 1999 at 05:04:18PM +0300, Sergey S. Kosyakov wrote: > >> it seems that calling select in more than one concurrent thread cause all >> such >> threads except the last to block forever. The same situation is with poll(). >> The >> only case when select() and poll() work is when timeout is set to 0. >> Is select really thread safe in FreeBSD? > > What compile/link flags are you using? The poll function isn't implemented > for libc_r, AFAIK (I'm assuming you're using the libc_r "user thread" code > right?). > Yes, I use some trick - there was really _thread_sys_poll. But my main question about select - Xerox ILU calls select() for every "listen" socket and when socket is waiting for read. Flags: "cc -pthread" --- ---------------------------------- Sergey Kosyakov Laboratory of Distributed Computing Department of High-Performance Computing and Applied Network Research Landau Institute for Theoretical Physics E-Mail: ks@itp.ac.ru Date: 28-Jan-99 Time: 17:18:16 ---------------------------------- --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message