Math Co-Proc. usage
john.urban
urban at cbnewsl.att.com
Fri May 10 00:11:58 AEST 1991
In article <455m21w164w at gantz.bowlgreen.oh.us> gantzm at gantz.bowlgreen.oh.us (gantzm) writes:
>
> Could someone with more experience then I have, please explain
>how a math co-proc. is handled under any System V os??? What I want
>to know is, if two tasks want to use a 387 is the math unit treated
>as a resource that gets locked and unlocked? If not is the data
>in the math co-proc. switched during a task switch, and if this is
>true isn't this slow!!!!!
Slow? Well maybe, however, if you don't have a 387 chip, the 80387 emulator
(/etc/emulator) runs at about 2% of speed of a 387 chip. Thus is you have
a little math intensive program that takes 35.7 seconds to run with a 80387
chip, it will take about 14 minutes with the emulator.
The 80387 (or emulator) is only locked into the processes when it is running.
When the process is swapped out, the 387 is free for the next process. Just
like the 80386.
When the kernel changes processes, the states/registers of both the 80386 and
the 80387 are saved, so they can be restored when the original process is swapped
back in.
Sincerely,
John Urban
More information about the Comp.unix.sysv386
mailing list