home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / misc / 16032 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  5.8 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!ucbvax!ucdavis!toadflax!putzolu
  2. From: putzolu@toadflax.cs.ucdavis.edu (David Putzolu)
  3. Newsgroups: comp.sys.mac.misc
  4. Subject: Re: First Taligent Won't Run Existing Apps
  5. Message-ID: <16789@ucdavis.ucdavis.edu>
  6. Date: 5 Sep 92 02:49:57 GMT
  7. References: <ewright.714340143@convex.convex.com> <nigel.715395259@saturn> <ewright.715553413@convex.convex.com>
  8. Sender: usenet@ucdavis.ucdavis.edu
  9. Organization: Department of Computer Science, University of California, Davis
  10. Lines: 107
  11.  
  12. In article <ewright.715553413@convex.convex.com> ewright@convex.com (Edward V. Wright) writes:
  13. >In <nigel.715395259@saturn> nigel@socs.uts.edu.au (Nigel Pearson) writes:
  14. >
  15. >>    1) MacOs already does this at times. You shove a disk in, and mouse
  16. >>       response, or file de-compression speed slows down.
  17. >
  18. >Yes, but with a preemptive operating system, that can happen *anytime*,
  19. >not just at well-defined times, such as in response to a disk-insert
  20. >event.
  21. >
  22. >>    2) If you don't want other tasks to pre-empt what you are doing,
  23. >>       raise the priority of the important task. Some OS's do this
  24. >>       automatically for the "foreground" application. (i.e. the one
  25. >>       which has user input at the moment - the active window)
  26. >
  27. >Raising the priority of the foreground task is no solution.  If
  28. >you're running any significant program, its CPU requirements vary
  29. >greatly from one moment to the next.  If you set the priority high
  30. >enough to allow it to get all the cycles it needs at critical times,
  31. >it's going to be hogging cycles that it doesn't need during slack
  32. >times.  No matter how you set the priority, you're going to be wasting
  33. >cycles sometime.  The only optimal solution is a dynamic (i.e., cooperative)
  34. >solution.
  35.  
  36. Wow! So you are saying that Taligent (when it comes out) will be a
  37. piece of crap right? Because when I use OS/2 at work I never have
  38. the pauses you mention as endemic to Taligent because of it's
  39. pre-emptive multi-tasking. Wow! So you have finally agreed that OS/2
  40. is a better OS than System 7 & Taligent, because both of these
  41. will be 'wasting cycles' and pausing awkwardly - how horrible!
  42. I'd better go sell my Mac & get a PC. Thanks for the info!
  43.  
  44. >>>Preemptive multitasking only works well for noninteractie, batch-oriented
  45. >>>systems or interactive systems with multiple processors.  
  46. >
  47. >>    Bullshit.
  48. >
  49. >Oh, very clever.  That convinces me *completely*.
  50.  
  51. OK, 'Bullshit' is not a very informative response. How about this:
  52. Preemptive multi-tasking generally _optimizes_ use of the processor.
  53. How? Because it takes cycles away from processes that don't need
  54. them & always gives those cycles to processes that do. I'll give
  55. some examples to make this more clear:
  56. 1) User inserts a floppy to be formatted. In the current Finder,
  57. the Finder gives _all_ of it's attention to this formatting. The
  58. user cannot do any other finder operations. This is a terrible
  59. waste of processing time, particularly on a fast system like a
  60. Q700, where the CPU is basically sitting there waiting for the
  61. floppy to finish and return control.
  62.   In a pre-emptive OS the following occurs (assuming a premptive
  63. Finder or equivalent for ease of comparison): User inserts a
  64. floppy to be formatted. Finder forks off another process to do
  65. the work. Process issues a command to the floppy controller
  66. and blocks, waiting for the controller to finish. Meanwhile,
  67. finder gets control back and user gets to do other things.
  68. Since at least 99% of the time spent formatting a floppy disk
  69. is all device I/O (ie, not requiring CPU intervention) user 
  70. gets 99% of the performance he would in the finder, instead of
  71. 0% while waiting for formatting to complete.
  72. 2) User boots up his Mac to get a 3270 session to connect to
  73. his IBm mainframe. User gets to sit and wait while connection
  74. is established, or at best (assuming a well written App) gets to
  75. put 3270 session in the background, and gets control during
  76. times that 3270 program does a GetNextEvent call. Note that
  77. since 3270 session is a serial single process, it will only
  78. issue GetNextEvent when it has processor control - it can't
  79. be prempted. 
  80.   In OS/2, on the other hand, I start a 3270 session off and
  81. go and do some other things. Since most of the time spent
  82. setting up the connection is waiting for network transmission
  83. of connect requests, response from mainframe, etc., 3270 program
  84. keeps blocking (stopping waiting for I/O response) releasing
  85. processor control to me. I get all this processor time that would be
  86. wasted waiting for the I/O of the 3270 session to use for
  87. myself.
  88.  
  89. Look, I prefer the Mac OS. That's why I have one. But I admit
  90. that it is not the pinnacle of perfection in every way. It's
  91. cooperative multi-tasking is one of them.
  92.  
  93. >>>>Symmetric Multi-Processing?  
  94. >
  95. >>>I'm not even sure what this is.  If it's anything more than
  96. >>>marketing speak, I'd like to hear more.
  97. >
  98. >>    More than one processor, attached symmetrically to the buss?
  99. >
  100. >Ever hear of Rocketshare?
  101.  
  102. SMP is useful in only very specialized areas IMHO. The only
  103. reason one would use it is to get very high performance (when one
  104. processor just isn't enough or isn't cost effective). The average
  105. user does NOT need that huge amount of performance. A Quadra 700
  106. may be necessary for some (like me :)  but even I have no use
  107. for SMP. Perhaps people doing long, lengthy calculations need
  108. it, like Raytracing, etc., but who else?
  109.  
  110. -- 
  111. | David M. A. Putzolu               | putzolu@cs.ucdavis.edu              |
  112. | Senior Undergraduate              | op disclaimer(opinion : ptr mine)   |
  113. | Computer Science and Psychology   |      Money? Who needs money?        |
  114. | University of California at Davis |          I've got fish!             |
  115. | David M. A. Putzolu               | putzolu@cs.ucdavis.edu              |
  116. | Senior Undergraduate              | op disclaimer(opinion : ptr mine)   |
  117. | Computer Science and Psychology   |      Money? Who needs money?        |
  118. | University of California at Davis |          I've got fish!             |
  119.