busy looping in kernel, time question

alex at lancelot alex at lancelot
Thu Apr 10 03:41:02 AEST 1986


From: Alex Bronstein <alex at lancelot>

Hello,

	Assume I want to busy loop in the kernel for 100 milliseconds, how
many times (approx) should I go around a loop which increments an int?

	(Yes I know you usually don't want to busy loop in the kernel,
in fact, I know how to do it the "smart" way, with sleep, and timeout, but
for once I really need to busy loop for a short time..)

	Thanks,

				Alex



More information about the Comp.unix.wizards mailing list