This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sleep make overload


Hello !

I made a process what's like this:

while (1)
	{
	sleep(5);
	printf(opened_file,"k\n");
	}

It's making about 14% processor load on a PII 500 MS NT Machine ?
Who know why ?
Exist another good sleep function ?

	Miletics Tamas

------------------------------------------------------------------------
===== EuroWeb Rt            ===== Thomas Miletics - System Administrator
=====                       ===== H-1122 Budapest Varosmajor utca 13.
===== http://www.euroweb.hu ===== Tel.: +36 1 2244000 Fax: +36 1 2244100
------------------------------------------------------------------------



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]