From owner-freebsd-current Sun Sep 20 03:10:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA22261 for freebsd-current-outgoing; Sun, 20 Sep 1998 03:10:57 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp.algonet.se (tomei.algonet.se [194.213.74.114]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA22228 for ; Sun, 20 Sep 1998 03:10:39 -0700 (PDT) (envelope-from mal@algonet.se) Received: (qmail 19288 invoked from network); 20 Sep 1998 12:10:08 +0200 Received: from kairos.algonet.se (HELO kairos) (194.213.74.18) by tomei.algonet.se with SMTP; 20 Sep 1998 12:10:08 +0200 Received: (mal@localhost) by kairos (SMI-8.6/8.6.12) id MAA21297; Sun, 20 Sep 1998 12:10:09 +0200 Date: Sun, 20 Sep 1998 12:10:09 +0200 Message-Id: <199809201010.MAA21297@kairos> From: Mats Lofkvist To: freebsd-current@FreeBSD.ORG Subject: pthreads and sync writes Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is it possible to do a sync write from a thread without blocking the process completely? I have tried with open(O_FSYNC) and by calling fsync() after writev(), but neither seem to make any other thread runnable. Btw, O_FSYNC isn't documented in open.2. Fsync()ing also seems to be sligtly faster, is this an illusion or is there a difference in the semantics? _ Mats Lofkvist mal@algonet.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message