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

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!cd248
  2. From: cd248@cleveland.Freenet.Edu (Richard Sherman)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Coop. vs preemptive multitasking (was Re: SwitchItpress release)
  5. Date: 8 Jan 1993 07:48:46 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 44
  8. Message-ID: <1ijbkuINNq8@usenet.INS.CWRU.Edu>
  9. Reply-To: cd248@cleveland.Freenet.Edu (Richard Sherman)
  10. NNTP-Posting-Host: hela.ins.cwru.edu
  11.  
  12.  
  13.  
  14. >Indeed.  MultiFinder is touted as multitasking but that's pushing it a
  15. >bit; without *pre-emptive* multitasking it's still just
  16. >Super-Switcher.  As Scott Anderson (I think) said, it's at the mercy
  17. >of disk drive/SCSI/serial port/etc. access, which is often VERY
  18. >annoying (STUPID PROGRAM! I DIDN'T *REALLY* WANT TO UNSTUFF THAT 20MB
  19. >ARCHIVE!).
  20.  
  21.  
  22. Actually, I thought Multifinder was just a switcher and didn't really
  23. RUN all the programs at once, as opposed to system 7.0.  I could be
  24. wrong about this.
  25.  
  26. Also, what is the big advantage of preemptive multitaksing on a single
  27. user system?  I asked this same question on comp.sys.mac.system and what
  28. it came down to was that cooperative multitasking (system 7.0) only
  29. hands control over to the background programs when the foreground
  30. program is  waiting for user input (most programs spend about 80% of
  31. their time waiting  for user input).  While preemptive multitasking
  32. hands control over after a designated time period.  What makes
  33. cooperative multitasking bad is that a program could hog the cpu if it
  34. weren't written right.  This might be valid for other computers but on a
  35. mac (and a GS I think), control is  given to the background programs
  36. whenever GetNextEvent is called.  The programmer would have to write the
  37. program without using GetNextEvent for it to take over the cpu.
  38.  
  39. I'm not sure what you mean by "at the mercy of disk and serial port
  40. interrupts".  I do know that you can do other things on a Mac with
  41. system
  42. 7.0 while your copying files etc.  I also know that it's possible to use
  43. other parts of AWGS while you're downloading a file with its (useless)
  44. communications module.
  45.  
  46. I know preemptive is a better multitasking algorithm but so far I
  47. haven't been convinced that it's the only "real" multitasking.  This
  48. idea seems to have been made up by people trying to sell Amigas.
  49.  
  50.  
  51. -- 
  52. ================================================================
  53. | R. Stacy Sherman     cd248@cleveland.freenet.edu or          |
  54. | GEnie: R.SHERMAN2    stacy@uhhacb.uhh.hawaii.edu             |
  55. ================================================================
  56.