Date: Fri, 31 Oct 2008 11:54:31 +0800 From: Sam Xia <xiazhongqi@huawei.com> To: freebsd-performance@freebsd.org Cc: krassi@bulinfo.net Subject: 1. thread switching time? (Krassimir Slavchev) Message-ID: <000001c93b0c$6195e6b0$2f096f0a@china.huawei.com> In-Reply-To: <20081030120020.838891065756@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org > [mailto:owner-freebsd-performance@freebsd.org] On Behalf Of > freebsd-performance-request@freebsd.org > Sent: Thursday, October 30, 2008 8:00 PM > To: freebsd-performance@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@bulinfo.net> > Subject: thread switching time? > To: freebsd-performance@freebsd.org > Message-ID: <49088124.9050809@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----- > > > ************************************************** >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c93b0c$6195e6b0$2f096f0a>