From owner-freebsd-performance@FreeBSD.ORG Wed Oct 29 15:55:30 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81DA81065680 for ; Wed, 29 Oct 2008 15:55:30 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 3CFDC8FC16 for ; Wed, 29 Oct 2008 15:55:30 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id EA3B3C57B for ; Wed, 29 Oct 2008 17:28:42 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 78626-01 for ; Wed, 29 Oct 2008 17:28:40 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id E664FC256 for ; Wed, 29 Oct 2008 17:28:39 +0200 (EET) Message-ID: <49088124.9050809@bulinfo.net> Date: Wed, 29 Oct 2008 17:28:36 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: freebsd-performance@freebsd.org X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net X-Mailman-Approved-At: Wed, 29 Oct 2008 16:00:30 +0000 Subject: thread switching time? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 15:55:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello All, I am using FreeBSD 7 and would like to decrease the time of switching between threads. This time seems to be 1ms and it is impossible to make lower delays inside a thread, at least using nanosleep(). Is it possible to decrease this time to 1us? Best Regards -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFJCIEkxJBWvpalMpkRAmKUAKCehUxakt83IvQ/QhW2n0BicWaQbQCeJW9z twONH5Eb9fA4JoQaYVk69os= =6xti -----END PGP SIGNATURE-----