Problem with sleep and signal/alarm.

Bob Bart rbart at shakespyr.Pyramid.COM
Tue May 7 08:05:18 AEST 1991


In article <1991May6.153937.28635 at msuinfo.cl.msu.edu>,
winnard at frith.msu.edu writes:
|> I'm having trouble getting the sleep function to work
|> under C when I use signal/alarm function.

The sleep() function uses the interval timer to do the sleep. This means you
can't use both simultaneously.

You can have your cake, but you can't eat it.

      -#-------  Bob Bart -  Performance Analyst                  415-335-8101
    ---###-----  Pyramid Technology Corporation          pyramid!pyrnova!rbart
  -----#####---  Mountain View, CA  94039            rbart at pyrnova.pyramid.com
-------#######-  U.S.A.



More information about the Comp.unix.questions mailing list