home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!dtix!mimsy!lhc!mcmathmac.nlm.nih.gov!user
- From: mcmath@csb1.nlm.nih.gov (Chuck McMath)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Creating background tasks (HELP!).
- Message-ID: <mcmath-140892082728@mcmathmac.nlm.nih.gov>
- Date: 14 Aug 92 12:32:58 GMT
- References: <1992Aug13.170029.3055@qiclab.scn.rain.com>
- Sender: usenet@nlm.nih.gov (usenet news poster)
- Followup-To: comp.sys.mac.programmer
- Organization: MSD
- Lines: 37
-
- In article <1992Aug13.170029.3055@qiclab.scn.rain.com>,
- baer@qiclab.scn.rain.com (Ken Baer) wrote:
- >
- > OK, first of all, I do realize that the Mac OS does not yet support real
- > Multitasking (nor does MS Windows). But, I keep hearing about certain
- > applications or inits that allow programs to run in the background (like
- > the one that allows Think C to compile in the background). What I want
- > to do is allow our 3D rendering software to render in the background to
- > the user can use the modeller etc. while rendering. Could someone either
- > post, or point me to some documented code to set this up? What are the
- > limits and conditions to this? We are already doing this under Windows,
- > so I imagine a similar process should be possible on the Mac.
- >
- > Any and all related information will be greatly appreciated.
-
- Well, what you're really seeing is applications that can do tasks in
- the background. When the front application doesn't have pending events and
- it calls WaitNextEvent background applications get time - that is, if the
- frontmost application is well-behaved (please, gurus, correct me if I
- misspeak!)
-
- What you want to to is bone up (i.e., read Inside Mac) on the Event Manager
- (maybe?) and see how applications that are not in the foreground get time.
- Then you need to structure your rendering task so it can be done in small
- chunks, because it would not be polite for a background task to grab the
- computer and not let go (cf PrintMonitor!). Once you set up your renderer
- this way, it needs to be on the lookout for those events that apps get when
- they're in the background, and do some rendering then. It's easy to talk
- about, but, I believe, difficult to achieve in practice!
-
-
- chuck
-
- |- chuck mcmath - mcmath@csb1.nlm.nih.gov - MSD, Inc. ------------|
- |- National Library of Medicine - National Institutes of Health --|
- |- Bethesda, MD 20894 - !aixelsyd evah uoy siht daer nac uoy fI -|
- |- "Hey batter, hey batter, hey batter, swing" - Anon. -----------|
-