home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / apple2 / 26579 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.5 KB

  1. Path: sparky!uunet!stanford.edu!agate!ucbvax!GAGA.MASCHINENBAU.UNI-DORTMUND.DE!dirk
  2. From: dirk@GAGA.MASCHINENBAU.UNI-DORTMUND.DE
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: Coop. vs preemptive multitasking
  5. Message-ID: <9301081526.AA01300@gaga.maschinenbau.uni-dortmund.de>
  6. Date: 8 Jan 93 15:58:09 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 26
  11. X-Unparsable-Date: Fre, 8. Jan 1993 16:27:25 Uhr
  12.  
  13. To Richard Sherman:
  14.  
  15. It's really easy to write programs for the Mac that 
  16. support background applications. You just have to call 
  17. WaitNextEvent in your event loop or SystemTask during long 
  18. tasks.
  19. But it's not so easy to write a program that can work in 
  20. the background. When programming a time-consuming loop, 
  21. you can't do it with "for i:=1 to n do" or alike, instead 
  22. you have to watch the time you need, remember your counter 
  23. and return control to the system when your time is gone.
  24. It isn't (a lot of) fun to change a tested program to 
  25. support cooperative multitasking.
  26. With preemptive multitasking you don't have to worry about 
  27. that and you could even write short and simple programs 
  28. that do what they are supposed to, even in the background.
  29. Not every program needs a desktop interface and the 
  30. Macintosh Toolbox.
  31. So better buy a GS and GNO!
  32.  
  33. Dirk
  34.  
  35. |Dirk Froehling - dirk@gaga.maschinenbau.uni-dortmund.de|
  36. |Uni Dortmund, FB Maschinenbau, LS Mechanik             |
  37. |"GS is not dead, it just smells funny!" - FZ modified  |
  38.  
  39. QUIT
  40. lls funny!" - FZ modified  |
  41.  
  42.