home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- 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
- From: apel@physik.uni-kl.de (Martin Apel (SAGA))
- Subject: Re: Low level context switch for tasks
- Message-ID: <1992Nov12.120146.23099@rhrk.uni-kl.de>
- Sender: news@rhrk.uni-kl.de
- Organization: University of Kaiserslautern, Germany
- References: <1drfhuINNi45@uni-paderborn.de>
- Date: Thu, 12 Nov 1992 12:01:46 GMT
- Lines: 42
-
- aurel@uni-paderborn.de (Aurel Balmosan) writes:
- :
- : I have a question about the use of the <task-switch>, <task-launch> function
- : pointers in the task structure.
- : First: I think the reason why the Commodore-IEEE-Math-Library must be opened
- : by each task is: It install a <task-switch>,<task-launch> function to save
- : and restore the registers of the Math-Copro. Is this right?
- :
- At least in 1.3, the Switch/Launch routines were not used, but the
- coprocessor context was saved for every task. Otherwise, if tasks
- used inline fpu code, the registers wouldn't have been saved.
- I think it's the same way in 2.0, as I'm using JM, which installs
- such Switch/Launch vectors for cpu accounting.
-
- [ Stuff deleted ]
-
- : Specially: I could switch the MMU-list for each task. I think this is a way
- : to virtual memory without changing any existing program to use this
- : virtual memory. And the virtual memory would be dynamic!
- : (So I don't have to setup a harddisk partion for a spezial amount of
- : virtual memory like the existing virtual memory server do it (I think))
- :
- : Also the system would be able to protect memory of each task. This would make
- : the Amiga more stable! (If a task go wild the system would run normally!)
- :
-
- Even if you would install Switch/Launch routines for that purpose, the
- operating system wouldn't work anymore, because message sending is based
- upon passing a pointer to memory and not upon copying. If you would
- give each task a separate address space, they couldn't exchange messages
- anymore.
-
- --
- Reachable as: I do hate sums. There is no greater
- apel@gypsy.physik.uni-kl.de mistake than to call arithmetic an
- (Martin Apel) exact science. There are .. hidden
- laws of number which it requires a
- mind like mine to perceive. For
- instance, if you add a sum from the
- bottom up, and then again from the
- top down, the result is always
- different.
-