home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / programm / 4662 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.9 KB

  1. Xref: sparky comp.unix.programmer:4662 comp.unix.internals:1810
  2. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!darwin.sura.net!gatech!mailer.cc.fsu.edu!sun13!delta!mueller
  3. From: mueller@delta.cs.fsu.edu (Frank Mueller)
  4. Newsgroups: comp.unix.programmer,comp.unix.internals
  5. Subject: Re: spurious early wakeups by SIGALRM under SunOS 4.1
  6. Message-ID: <10736@sun13.scri.fsu.edu>
  7. Date: 15 Sep 92 15:28:20 GMT
  8. References: <10728@sun13.scri.fsu.edu> <1992Sep14.223515.6843@noao.edu>
  9. Sender: news@sun13.scri.fsu.edu
  10. Followup-To: comp.unix.programmer
  11. Organization: Florida State University Computer Science
  12. Lines: 29
  13.  
  14. In article <1992Sep14.223515.6843@noao.edu>, jdavis@bordeaux.kpno.noao.edu (Jim Davis) writes:
  15. > In article <10728@sun13.scri.fsu.edu> mueller@pi.fsu.edu (Frank Mueller) writes:
  16. > >Has anybody else experienced any spurious early wakeups by the timer signal
  17. > >which was requested by a setitimer (real-time timer) under SunOS 4.1.1?
  18. > >
  19. > >Any ideas why this happens? Is it a known bug?
  20. > Yup.  Here's the patch README.  BTW, mail to pi.fsu.edu bounced with a 'Host
  21. > unknown' error...
  22. > Patch-ID# 100458-02
  23. [stuff deleted]
  24.  
  25. Thanks, Jim, but that didn't fix it. Our problem is that the SIGALRM is coming
  26. in *early*. When we set up setitimer to send a signal in 60 sec. (from now, i.e.
  27. using gettimeofday), the signal comes in and we check on the current time (again
  28. gettimeofday) just to find out that the signal came up to ~20ms early. We were
  29. under the impression that the semantics of setitimer guarantees that you are
  30. woken up by SIGALRM *no earlier* than the specified time. These results vary
  31. considerably from machine to machine, from always waking up early, over sporadi-
  32. cally doing so, to never doing so.
  33.  
  34. Has anybody else an idea? (I wonder if Sun knows... Or if they even care... Maybe
  35. it's a feature:-)
  36.  
  37. Frank
  38. mueller@cs.fsu.edu
  39.  
  40. P.S. My return address should be fixed now.
  41.