thread switching time?

Jason Stone freebsd-performance at dfmm.org
Wed Oct 29 18:06:01 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> 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?

Increase HZ, with the usual caveats about trading off latency for 
overhead?


  -Jason

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: See https://private.idealab.com/public/jason/jason.gpg

iD8DBQFJCJ/FswXMWWtptckRAsdSAKCu2TF1LaqyR0JTuZX3oZD8S3H+cQCg8xoa
78qzo/mZ9klKhotTn4kJTkw=
=6fXj
-----END PGP SIGNATURE-----


More information about the freebsd-performance mailing list