Path: utzoo!attcan!uunet!brunix!sgf From: sgf@cs.brown.edu (Sam Fulcomer) Newsgroups: comp.unix.internals Subject: Re: Can Unix sleep in terms of mili/micro? Message-ID: <50249@brunix.UUCP> Date: 18 Sep 90 14:01:04 GMT References: <24437@adm.BRL.MIL> <151@rwing.UUCP> Sender: news@brunix.UUCP Reply-To: sgf@cs.brown.edu (Sam Fulcomer) Organization: Brown University Department of Computer Science Lines: 23 In article yukngo@obelix.gaul.csd.uwo.ca (Cheung Yukngo) writes: >I remember reading somewhere that the select() function can be used to Well, there's an ugly little BSD function called usleep(3) which uses the itimer stuff. You can also use select(2) as in: select(0,0,0,0,&sleepy_time); (handle signals however you'd like...) Many Un*xen will have select and perhaps the itimer stuff. Fewer will have usleep (SYSV jocks have an easier time keeping up with the BSD system calls...). Bear in mind that this is all pretty grainy generic stuff. If you want "real time" control you should look at something marketed for it. -s