home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18820 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  2.5 KB

  1. Path: sparky!uunet!olivea!charnel!rat!usc!news.service.uci.edu!orion.oac.uci.edu!rbarris
  2. From: rbarris@orion.oac.uci.edu (Robert C. Barris)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Here's a challenge -- a REALLY obscure question.
  5. Summary: floppy disables, SCSI doesn't.
  6. Message-ID: <2B1122B6.8988@news.service.uci.edu>
  7. Date: 23 Nov 92 18:28:07 GMT
  8. References: <1992Nov17.035307.4895@CSD-NewsHost.Stanford.EDU>
  9. Organization: University of California, Irvine
  10. Lines: 45
  11. Nntp-Posting-Host: orion.oac.uci.edu
  12.  
  13. In article <1992Nov17.035307.4895@CSD-NewsHost.Stanford.EDU> cheshire@CS.Stanford.EDU (Stuart Cheshire) writes:
  14. >This question is for my game, Bolo, which I am currently working on.
  15. >
  16. >In order to make the startup time as quick as possible, I load
  17. >the sound resources off disk simultaneously with running the
  18. >'join game' map transfer protocol over the network.
  19. >
  20. >However, I have found a problem. If you load Bolo off floppy disk, then
  21. >disk accesses disable interrupts, causing the Mac to miss some network
  22. >packets, disrupting the smooth flow of the game for other players.
  23. >
  24. >I also suspect that perhaps on low end machines like the Mac
  25. >Plus, SCSI disk access might also cause lost network packets.
  26. >
  27. >Before I take out the concurrent loading feature (and have
  28. >people complain), here is a single plea for help:
  29. >
  30. >Does anyone know a test I can make Bolo perform to determine whether
  31. >disk access will cause network packet loss, so that I can retain the
  32. >concurrent loading feature on setups that can support it?
  33. >
  34. >If no-one answers then concurrent loading goes away in the next release
  35. >-- network reliability has to take priority over loading speed. Sorry.
  36. >
  37. >Stuart Cheshire <cheshire@cs.stanford.edu>
  38. > * Liliore Green Rains Houses Resident Computer Coordinator
  39. > * Stanford Distributed Systems Group Research Assistant
  40. > * Macintosh Programmer
  41.  
  42. I think you can assume that SCSI accesses will never disable interrupts. One
  43. gross way to look at this would be to use the volume reference number of
  44. the volume you are doing accesses to; look up its VCB; find the Drive Queue
  45. element which corrsponds to that volume by walking the Drive Queue; then
  46. see if the driver reference number for that drive is in the range devoted
  47. to SCSI (don't remember offhand). Whew!
  48.  
  49. The floppy controller takes full CPU attention in all Macs save for the Quadra
  50. 9x0's and the IIfx. It's timing critical a la LocalTalk and therefore requires
  51. that interrupts be disabled.
  52.  
  53. But, I think if you're on anything but a floppy, it should be OK.
  54.  
  55. Rob Barris
  56. Quicksilver Software Inc.
  57. rbarris@orion.oac.uci.edu
  58.