home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13986 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.5 KB

  1. 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
  2. From: mcmath@csb1.nlm.nih.gov (Chuck McMath)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Creating background tasks (HELP!).
  5. Message-ID: <mcmath-140892082728@mcmathmac.nlm.nih.gov>
  6. Date: 14 Aug 92 12:32:58 GMT
  7. References: <1992Aug13.170029.3055@qiclab.scn.rain.com>
  8. Sender: usenet@nlm.nih.gov (usenet news poster)
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: MSD
  11. Lines: 37
  12.  
  13. In article <1992Aug13.170029.3055@qiclab.scn.rain.com>,
  14. baer@qiclab.scn.rain.com (Ken Baer) wrote:
  15. > OK, first of all, I do realize that the Mac OS does not yet support real
  16. > Multitasking (nor does MS Windows). But, I keep hearing about certain
  17. > applications or inits that allow programs to run in the background (like
  18. > the one that allows Think C to compile in the background).  What I want
  19. > to do is allow our 3D rendering software to render in the background to
  20. > the user can use the modeller etc. while rendering.  Could someone either
  21. > post, or point me to some documented code to set this up?  What are the
  22. > limits and conditions to this?  We are already doing this under Windows,
  23. > so I imagine a similar process should be possible on the Mac.
  24. > Any and all related information will be greatly appreciated.
  25.      
  26.         Well, what you're really seeing is applications that can do tasks in
  27. the background.  When the front application doesn't have pending events and
  28. it calls WaitNextEvent background applications get time - that is, if the
  29. frontmost application is well-behaved (please, gurus, correct me if I
  30. misspeak!)
  31.  
  32. What you want to to is bone up (i.e., read Inside Mac) on the Event Manager
  33. (maybe?) and see how applications that are not in the foreground get time. 
  34. Then you need to structure your rendering task so it can be done in small
  35. chunks, because it would not be polite for a background task to grab the
  36. computer and not let go (cf PrintMonitor!).  Once you set up your renderer
  37. this way, it needs to be on the lookout for those events that apps get when
  38. they're in the background, and do some rendering then.  It's easy to talk
  39. about, but, I believe, difficult to achieve in practice!
  40.  
  41.  
  42. chuck
  43.  
  44. |- chuck mcmath - mcmath@csb1.nlm.nih.gov - MSD, Inc. ------------|
  45. |- National Library of Medicine - National Institutes of Health --|
  46. |- Bethesda, MD 20894 -  !aixelsyd evah uoy siht daer nac uoy fI -|
  47. |- "Hey batter, hey batter, hey batter, swing" - Anon. -----------|
  48.