Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 2007 21:54:20 -0500
From:      "lu ping" <luping.nju@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   "sleep" in freebsd kernel
Message-ID:  <e80b0eb70702031854n57d81f6ar8b7f46be9d34d1a8@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hey Folks,

I have a kernel thread running as a daemon, and I want to make it sleep for
a while in an infinite loop. I guess I can use "tsleep" but it only timeout
after intergal system ticks, which only has millisecond granularity, but I
want to make it sleep in some microsecond. Is there any way I can do this in
the kernel?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e80b0eb70702031854n57d81f6ar8b7f46be9d34d1a8>