home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14825 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.9 KB  |  41 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!usc!rpi!batcomputer!snake.tc.cornell.edu!reed
  3. From: reed@snake.tc.cornell.edu (Michael G. Reed)
  4. Subject: Re: Formatting a disk in the background
  5. Message-ID: <1992Sep1.121235.11175@tc.cornell.edu>
  6. Followup-To: comp.sys.mac.programmer
  7. Keywords: background, disk formatting
  8. Sender: news@tc.cornell.edu
  9. Nntp-Posting-Host: snake.tc.cornell.edu
  10. Reply-To: reed@Theory.TC.Cornell.EDU
  11. Organization: Cornell National Supercomputing Facility
  12. References:  <1992Aug31.223046.8274@microsoft.com>
  13. Date: Tue, 1 Sep 1992 12:12:35 GMT
  14. Lines: 25
  15.  
  16. In article <1992Aug31.223046.8274@microsoft.com>, peterbak@microsoft.com (Peter Bako) writes:
  17. |> 
  18. |> I have a small application that automatically formats disk, but
  19. |> can only do so while it is in the foreground.  How can I make
  20. |> the program be able to format a disk in the background?  Either
  21. |> by running the program in the background, or to move it there once
  22. |> it has started its process.
  23. |> 
  24. I don't think it can be done.  The problem is that reads/writes to floppy 
  25. disks are VERY time critical.  Therefore, most OS's will disable interupts
  26. and require the formatting code to run exclusively if you want a "properly"
  27. formatted disk.  This happens on the mac (that's why the mouse "jumps" when
  28. you are formatting disks...the mouse is interupt driven), so I don't think 
  29. you're going to be able to get around it with Apple's routines...You could
  30. always write your own disk I/O routines :) (just kidding).
  31.  
  32. -Michael
  33.  
  34. -----------------------------------------------------------------------------
  35. Michael G. Reed                                  (reed@Theory.TC.Cornell.edu)
  36. Cornell National Supercomputing Facility                       (607)/254-8806
  37. -----------------------------------------------------------------------------
  38.         Why be normal, it's boring; and boring people should be shot.
  39.  
  40. Note:  These are not the views of my employer (and probably not mine either).
  41.