home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17528 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.4 KB

  1. Xref: sparky comp.sys.amiga.programmer:17528 comp.sys.amiga.hardware:21767
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!crcnis1.unl.edu!cse.unl.edu!tbills
  3. From: tbills@cse.unl.edu (Trent Bills)
  4. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
  5. Subject: Re: CISC and RISC
  6. Date: 18 Dec 1992 14:57:00 GMT
  7. Organization: University of Nebraska--Lincoln    
  8. Lines: 36
  9. Distribution: world
  10. Message-ID: <1gsorsINN327@crcnis1.unl.edu>
  11. References: <70436@cup.portal.com> <amipb.04wr@amipb.gna.org> <37844@cbmvax.commodore.com> <AHANSFOR.92Dec17115522@bigwpi.wpi.edu>
  12. NNTP-Posting-Host: cse.unl.edu
  13.  
  14. In article <AHANSFOR.92Dec17115522@bigwpi.wpi.edu>, ahansfor@bigwpi.wpi.edu (Andrew L. Hansford) writes:
  15.  
  16. |> tbills> The extreme cost of task switching is part of the motivation
  17. |> tbills> for putting multiple processors in one machine.  Most (all?)
  18. |> tbills> workstation makers have some kind of multiprocessor machine.
  19. |> 
  20. |> tbills> |> -- Andrew Hansford |> ahansfor@wpi.wpi.edu
  21. |> 
  22. |> tbills> - Trent Bills
  23. |> 
  24. |> True. But like exception handling, more support for this seems to go
  25. |> into CISC machines.  As for multiple processors, you still incur the
  26. |> same cost for a context switch.  Now you have more processors
  27. |> switching.  Esp with microkernel architectures that instead of one
  28. |> switch to the kernel and back to the calling function (2 switches),
  29. |> you get a context switch to the kernel,  a message is copied or
  30. |> remapped, a context switch to a user lever server, and then the server
  31. |> enters the kernel to pass a message back to the calling proces.  Now
  32. |> we have twice and many context switches.  
  33.  
  34. The idea behind having multiple processors is that you only have a few
  35. active processes at any one time and that each processor can be more
  36. or less dedicated to that process.
  37.  
  38. The cost of a context switch in a RISC machine isn't usually that much
  39. more that a CISC machine.  The only real difference is that the CISC
  40. machine only has to execute one or two instructions to perform the
  41. context switch whereas the RISC machine will have to execute much more.
  42. However, every instruction in the RISC machine will only take one clock
  43. cycle whereas the instructions for a task switch in a CISC machine
  44. will take a rather large number of clock cycles.  Every access to memory
  45. will take at least one clock cycle regardless of the type of processor.
  46. The result is larger code on the RISC machine, but roughly identical
  47. performance for both.
  48.  
  49.  - Trent Bills
  50.