home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / acorn / tech / 72 < prev    next >
Encoding:
Text File  |  1992-08-25  |  2.0 KB  |  39 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!mcsun!dxcern!dscomsa.desy.de!vxdesy.desy.de!burke
  3. From: burke@vxdesy.desy.de
  4. Subject: CallAfter bug?
  5. Message-ID: <1992Aug25.190632.1@vxdesy.desy.de>
  6. Lines: 27
  7. Sender: news@dscomsf.desy.de (USENET News System)
  8. Nntp-Posting-Host: vxdsyc.desy.de
  9. Organization: (DESY, Hamburg, Germany)
  10. Date: Tue, 25 Aug 1992 19:06:32 GMT
  11.  
  12. My question about disk space got a good response (thanks everyone), so let's
  13. try something even more arcane. 
  14.  
  15.   I've used CallAfter and CallEvery before, but never for an accurately-timed
  16. delay. I've just been testing this, and it seems that they both run about 10%
  17. slow. Specifically, if I ask to be called after 100 ticks (1 second) I actually
  18. get called after something between 109 and 110 ticks. The average number is
  19. quite stable, but doesn't appear to be an integer. I'm measuring the slippage
  20. relative to the monotonic time, which does seem to be accurate. I find this
  21. odd, as I had assumed that they were clocked off the same interrupt. Does
  22. anyone know what the problem is? Can I rely on it being 10% slow? What is there
  23. that happens at slightly more than 9Hz??? I wasn't trying it on a "virgin
  24. machine"; is it possible that a rogue module is messing it up?
  25.  
  26.   BTW, this is another area where the PRM is deficient; it doesn't say what the
  27. entry and exit conditions for the called routine are, other than "treat it as
  28. an interrupt routine". Do I have to preserve registers? And is the processor in
  29. IRQ mode? It would be nice to have an OS_CallBackAfter, since whenever I use
  30. CallAfter I always seem to need a CallBack as well. Not in RISC OS 3 by any
  31. chance? :-)
  32.  
  33. e----><----p | Stephen Burke           | Internet: burke@vxdesy.desy.de
  34.  H   H   1   | Gruppe FH1T (Liverpool) | DECnet:   vxdesy::burke (13313::burke)
  35.  H   H  11   | DESY, Notkestrasse 85   | BITNET:   BURKE@DESYVAX or SB2@UKACRL
  36.  HHHHH   1   | 2000 Hamburg 52         | JANET:    sb2@uk.ac.rl.ib
  37.  H   H   1   | Germany                 | Phone:    + 49 40 8998 2282
  38.  H   H 11111 | HERA, the world's largest electron microscope!
  39.