From owner-freebsd-hackers Tue Mar 24 01:19:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA26586 for freebsd-hackers-outgoing; Tue, 24 Mar 1998 01:19:29 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.anet.cz (ns.anet.cz [194.50.6.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA26578 for ; Tue, 24 Mar 1998 01:19:26 -0800 (PST) (envelope-from dali@proxima.britcoun.cz) Received: from proxima.britcoun.cz (proxima.britcoun.cz [194.108.124.2]) by ns.anet.cz (8.9.0.Beta3/8.8.8) with ESMTP id KAA26150 for ; Tue, 24 Mar 1998 10:22:58 +0100 Received: from localhost (dali@localhost) by proxima.britcoun.cz (8.8.5/8.8.5) with SMTP id KAA03640 for ; Tue, 24 Mar 1998 10:16:02 +0100 (CET) Date: Tue, 24 Mar 1998 10:16:01 +0100 (CET) From: Dalibor Sramek To: hackers@FreeBSD.ORG Subject: Free-BSD threads & IO Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi. I'd like to learn Posix threads programming and I want to use Free-BSD system for my experiments. According to 'man pthreads' I compiled libc_r. Then I started with several multithreaded examples from Unix Net Programming (by R.W. Stevens). Soon I realized that compiled examples did not work as I'd expected. The problem is that for example 'accept' call does not block and return immediately. I tested the same examples on Linux system and they worked fine. Although I spent much time searching for information about threads and IO blocking I found it neither in my books or on Internet. So - is there any explanation for this problem and is thread support OK in Free-BSD? I still use 2.2.1 installation. Thanks Dalibor Sramek The British Council, Prague Czech Republic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message