Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rutgers!maverick.ksu.ksu.edu!unmvax!uokmax!d.cs.okstate.edu!minich From: minich@d.cs.okstate.edu (Robert Minich) Newsgroups: comp.sys.mac.programmer Subject: Re: Two suggestions for THINK C Message-ID: <1990Aug2.065801.5767@d.cs.okstate.edu> Date: 2 Aug 90 06:58:01 GMT References: <1990Aug1.220231.18581@ucselx.sdsu.edu> Organization: Oklahoma State University Lines: 35 lippin@math.berkeley.edu writes: |#> 2) There ought to be a "Cancel" button on the compilation dialog. |#Just press Command-Period to cancel a compilation. | |Some of us would *still* like a button, however. | |(While you're at it, how about making it a movable modal so we can |switch out and do something else?) by purcell@sciences.tmc.edu (Guy B. Purcell): | If this were done, compiling would be *much* slower. Maybe later when | multitasking is handled better this will be worth it, but not currently. | I mean can you imagine putting in 'wait' statement in a compiler just | to allow other tasks some CPU time? The OS should handle allocating | CPU resources, not the various applications. Apple is working toward | this -- we just have to be patient. I agree an OS should deal with CPU scheduling, but I don't think that it would be prohibitively difficult to support background compilation. Judging how often to yield CPU time might entail a little bit of work, but it seems obvious to me that they are already checking for events, since they catch cmd-'.' to interrupt compiling. I s'pose the main difficulty would be ensuring the foreground process regular CPU bursts. However, I think it would be relatively simple to add some code around the are that provides status updates ("xxx lines") that looks at the current number of ticks and calls WNE() after a reasonable amount have gone by. There are two reasons I see to provide this feature: (1) you can read the netnews while you compile :-), and (2) you can start fixing the errors that are showing up in the "compile errors" window. :-> -- |_ /| | Robert Minich | |\'o.O' | Oklahoma State University| There are no heroes -- |=(___)= | minich@a.cs.okstate.edu | We all wear gray hats. | U | - Ackphtth |