hello Gowri,

Try pthread library. You can use thread concept n all functions are there in pthread 
library.



Nikhil Bhargava, 

Research Enginneer, 
IMT-2000, 
CDOT Delhi 


"The Linux-Delhi mailing list" wrote:



Hi All,

I want to wait for an event and timeout after a specific time period 
specified.

And it should also wait upon an event, on whose occurence it will 
conrtinue with the initial processing.

While waiting it should not use CPU cycles.

I want to know how to implement this.

just to be more clear,

say... sleep(5), when this is sleeping if in the 3rd second the event 
arrives it should go to its signal handler or whatever and continue with 
the initial processing before it started sleeping.

sleep can't be interrupted.

so how should I implement it?

Thanks.
Gowri.


_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Get Your Private, Free E-mail from Indiatimes at  http://email.indiatimes.com
Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
Bid for Air Tickets on Air Sahara Flights at Prices Lower Than Before. Just log on to 
http://airsahara.indiatimes.com and Bid Now !
_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to