Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!visix!news From: amanda@visix.com (Amanda Walker) Newsgroups: comp.sys.mac.programmer Subject: Re: Questions about multitasking on the mac Message-ID: <1991May19.050551.27447@visix.com> Date: 19 May 91 05:05:51 GMT References: <1CE00001.fiq1tb@tbomb.ice.com> Sender: news@visix.com Organization: Visix Software Inc., Reston, VA Lines: 19 In article <1CE00001.fiq1tb@tbomb.ice.com> time@ice.com (Tim Endres) writes: The alternative (which seems cleaner) is to drive a state machine within the event loop. I use this style myself. A extra bonus is that it makes it easier to build multithreaded applications (if this doesn't make sense to you, think "internal multitasking" within an application), since nothing ever blocks. This does require a different style of structuring your code, but it doesn't take too long to get the hang of it. This is sometimes also called "continuation-passing style". -- Amanda Walker amanda@visix.com Visix Software Inc. ...!uunet!visix!amanda -- "For historical reasons, these hints are indicated by names that contain the word "Blue." -- Adobe Type 1 Font Format