home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13179 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!fuug!funic!nntp.hut.fi!vipunen.hut.fi!jmunkki
  3. From: jmunkki@vipunen.hut.fi (Juri Munkki)
  4. Subject: Re: Writing asynchronous SCSI driver.
  5. Message-ID: <1992Jul29.205201.2090@nntp.hut.fi>
  6. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  7. Nntp-Posting-Host: vipunen.hut.fi
  8. Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
  9. Organization: Helsinki University of Technology
  10. References: <HEYES.92Jul21092205@dadev.cebaf.gov> <14h8tkINN61k@early-bird.think.com>
  11. Distribution: comp.sys.mac.programmer
  12. Date: Wed, 29 Jul 1992 20:52:01 GMT
  13. Lines: 31
  14.  
  15. In article <14h8tkINN61k@early-bird.think.com> ephraim@think.com (Ephraim Vishniac) writes:
  16. >In article <HEYES.92Jul21092205@dadev.cebaf.gov> heyes@dadev.cebaf.gov (Graham Heyes) writes:
  17. >>2) How do I make a "task" which wants to use the driver pend 
  18. >>   until the current transaction has completed?
  19. >
  20. >You don't.
  21. >
  22. >>    This is probably doccumented somewhere but a code 
  23. >>example would be a great help.
  24. >
  25. >The appropriate documentation firmly discourages developers from
  26. >attempting to implement asynchronous device drivers. Even if you did,
  27. >it's up to the application to request asynch I/O (see the Device
  28. >Manager chapter of IM), which none of them do. 
  29.  
  30. I agree here, but maybe the time could be used for something pseudo-
  31. useful anyway. You could write a routine that calculates a pixel
  32. in the mandelbrot set or ray traces something while waiting for the
  33. disk. You would have to code this into the driver, but it might
  34. be possible to make it open enough so that applications could register
  35. with your driver to get some calculation time.
  36.  
  37. Of course, this isn't asynchronous I/O, but it would be an interesting
  38. way to see how much time a Macintosh normally spends in these busy
  39. waiting loops of the SCSI driver.
  40.  
  41. Disclaimer:    :-)            [I've gotta be kidding, right?]
  42.  
  43. -- 
  44.   Juri Munkki                           Windsurf: fast sailing
  45.  jmunkki@hut.fi                          Macintosh: fast software
  46.