Subject: Re: hz parameter
To: None <fox@cs.mcgill.ca>
From: HARAWAT.IN.ORACLE.COM <HARAWAT.IN.ORACLE.COM.ofcmail@in.oracle.com>
List: tech-kern
Date: 02/28/1997 10:54:40
--Boundary-944072-0-0

	Select internally uses callout queue which in turn is processed by the 
kernel in the hard clock ( kern/kern_clock.c) , and this function is called 
when the clock interrupts ( cuurently this rate is 100) so I cannot get a 
better granularity than 10ms without increaing the clock interrupt rate. 
 
 
Harish 
-----------------------------------------------------------------------------

Harish Singh Rawat			   E-Mail : harawat@in.oracle.com 
Oracle Software India. Ltd.            Voice  : +91 (80) 225 - 6098/6099 
Indian Development Center ( IDC )          Fax    : +91 (80) 225 - 6207/1591 
Embassy Point, 150 Infantry Road 
Bangalore - 560001 India 



--Boundary-944072-0-0
Content-Type: message/rfc822

Date: 27 Feb 97 18:31:38
From:"Colin BRADLEY" <fox@CS.McGill.CA>
To: HARAWAT.IN.ORACLE.COM.ofcmail@in.oracle.com
Subject: Re: hz parameter


"HARAWAT.IN.ORACLE.COM" wrote: 

/*
 * 	Iam planning to increase the hz parameter from 100 to 1000 so as to 
 * get high resolution sleep. Are there any known side effects . 
 */

  Is there any reason why you can't use select() as a high-resolution
  sleep? (see Stevens: Advanced Programming in the UNIX Environment)


-- 
Colin Bradley
fox@cs.mcgill.ca
http://www.cs.mcgill.ca/~fox


--Boundary-944072-0-0--