1. thread switching time? (Krassimir Slavchev)

Sam Xia xiazhongqi at huawei.com
Thu Oct 30 21:04:38 PDT 2008


hi krassi,

 what kind of hardware are you using?  Actually because of process/thread
scheduling mechanism, timing granulariy is coarse in FreeBSD(more than 10
ms)
 
S.X
> -----Original Message-----
> From: owner-freebsd-performance at freebsd.org 
> [mailto:owner-freebsd-performance at freebsd.org] On Behalf Of 
> freebsd-performance-request at freebsd.org
> Sent: Thursday, October 30, 2008 8:00 PM
> To: freebsd-performance at freebsd.org
> Subject: freebsd-performance Digest, Vol 68, Issue 4

> 
> Message: 1
> Date: Wed, 29 Oct 2008 17:28:36 +0200
> From: Krassimir Slavchev <krassi at bulinfo.net>
> Subject: thread switching time?
> To: freebsd-performance at freebsd.org
> Message-ID: <49088124.9050809 at bulinfo.net>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> -----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-----
> 
> 
> **************************************************
> 



More information about the freebsd-performance mailing list