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