home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15729 < prev    next >
Encoding:
Text File  |  1992-11-12  |  2.4 KB  |  54 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!sun.rhrk.uni-kl.de!apel
  3. From: apel@physik.uni-kl.de (Martin Apel (SAGA))
  4. Subject: Re: Low level context switch for tasks
  5. Message-ID: <1992Nov12.120146.23099@rhrk.uni-kl.de>
  6. Sender: news@rhrk.uni-kl.de
  7. Organization: University of Kaiserslautern, Germany
  8. References: <1drfhuINNi45@uni-paderborn.de>
  9. Date: Thu, 12 Nov 1992 12:01:46 GMT
  10. Lines: 42
  11.  
  12. aurel@uni-paderborn.de (Aurel Balmosan) writes:
  13. : I have a question about the use of the <task-switch>, <task-launch> function
  14. : pointers in the task structure.
  15. : First: I think the reason why the Commodore-IEEE-Math-Library must be opened
  16. : by each task is: It install a <task-switch>,<task-launch> function to save
  17. : and restore the registers of the Math-Copro. Is this right?
  18. At least in 1.3, the Switch/Launch routines were not used, but the 
  19. coprocessor context was saved for every task. Otherwise, if tasks
  20. used inline fpu code, the registers wouldn't have been saved.
  21. I think it's the same way in 2.0, as I'm using JM, which installs
  22. such Switch/Launch vectors for cpu accounting.
  23.  
  24. [ Stuff deleted ]
  25.  
  26. : Specially: I could switch the MMU-list for each task. I think this is a way
  27. : to virtual memory without changing any existing program to use this 
  28. : virtual memory. And the virtual memory would be dynamic! 
  29. : (So I don't have to setup a harddisk partion for a spezial amount of 
  30. : virtual memory like the existing virtual memory server do it (I think))
  31. : Also the system would be able to protect memory of each task. This would make
  32. : the Amiga more stable! (If a task go wild the system would run normally!)
  33.  
  34. Even if you would install Switch/Launch routines for that purpose, the
  35. operating system wouldn't work anymore, because message sending is based
  36. upon passing a pointer to memory and not upon copying. If you would
  37. give each task a separate address space, they couldn't exchange messages
  38. anymore.
  39.  
  40. --
  41. Reachable as:                I do hate sums. There is no greater
  42. apel@gypsy.physik.uni-kl.de        mistake than to call arithmetic an
  43. (Martin Apel)                exact science. There are .. hidden
  44.                     laws of number which it requires a
  45.                     mind like mine to perceive. For
  46.                     instance, if you add a sum from the
  47.                     bottom up, and then again from the 
  48.                     top down, the result is always
  49.                     different.
  50.