home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / atari / st / tech / 4443 < prev    next >
Encoding:
Text File  |  1992-08-16  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.iastate.edu!vincent1.iastate.edu!sourada
  3. From: sourada@iastate.edu (Steven D Ourada)
  4. Subject: Interrupt interference
  5. Message-ID: <sourada.714027685@vincent1.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames IA
  8. Date: Mon, 17 Aug 1992 05:01:25 GMT
  9. Lines: 28
  10.  
  11. I'm writing a routine to hang off the 50Hz interrupt. This routine often
  12. takes as much as 2 ms (long, yes, but unavoidable). The problem is, this
  13. seems to interfere pretty badly with timing-intensive things like serial
  14. and disk access.
  15.  
  16. I've tried the few things I could think of to alleviate this problem:
  17. flock is checked at the entrance to the routine, if it indicates the disk
  18. is in use, the routine is exited immediately. If not, the IPL is lowered
  19. to 3 to allow other interrupts and work proceeds.
  20.  
  21. This, apparently, is not enough. Most of the time, disk accesses don't 
  22. cause problems, although this does happen sometimes. Serial port access
  23. seems to bomb fairly frequently, even at lowly 2400 bps.
  24.  
  25. Finally, the obvious question: What can I do to ensure that my routine
  26. gets the time it needs without bringing down the whole system? Is there
  27. a uniform way to see if some time-critical operations are going on? Is
  28. there a way to allow these to go on without my routine interfering too
  29. badly?
  30.  
  31.                  Later,
  32.                    Steven Ourada
  33.  
  34. -- 
  35. -----------------
  36. Steven Ourada  Member of the Students for Electronic Freedom
  37. Ask me how Iowa State University is censoring my Usenet access!
  38. sourada@iastate.edu     "can't casts no shadow" -- cummings
  39.