Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ucsd!rutgers!apple!han From: han@Apple.COM (Byron Han, Architect) Newsgroups: comp.sys.mac Subject: Re: multitasking and IPC (was: System 8.0: no more DA's.) Message-ID: <23201@apple.Apple.COM> Date: 3 Jan 89 06:44:07 GMT References: <1988Dec16.191309.21623@cs.rochester.edu> <326@internal.Apple.COM> <807@esl.UUCP> <747@lts.UUCP> <34550@think.UUCP> Organization: Apple Products - Networking & Communications Lines: 28 Having a modal dialogue does not mean that background tasks do not get time. Whilst the modal dialogue is presented to the esteemed user, a certain routine, ModalDialog, will be calling another routine, GetNextEvent, which under MultiFinder, will cause time to be given to the background task. Of course, if the user is holding down the mouse button for an extended period of time, background tasks will be sad. The modal dialogue (i.e. having a window with procID of dBoxProc) being front- most in the front-most layer will prevent switching foreground tasks. The reason that the statement is so specific is that I have mad MPW running in background with a script which will bring up a modal dialog while MPW is running as a background task. I can switch between other layers but when I switch into the MPW layer I must dismiss the modal dialog before I can switch out of MPW. Hope this helps. +-----------------------------------------------------------------------------+ | Disclaimer: Apple has no connection with my postings. | +-----------------------------------------------------------------------------+ Byron Han, Communications Architect Almost alpha now. Apple Computer, Inc. ------------------------------------- 20525 Mariani Ave, MS27Y Internet: han@apple.COM Cupertino, CA 95014 UUCP:{sun,voder,nsc,decwrl}!apple!han -------------------------------------- GENIE: BYRONHAN ATTnet: 408-974-6450 Applelink: HAN1 CompuServe: 72167,1664 ------------------------------------------------------------------------------