How are you going to have _two different threads_ access the same cpu at
the same time? I read his question to be "can one thread use the FPU
while the other thread uses the normal integer processing CPU. the
answer is no. Because the cpu/fpu combination has one program counter,
one cpu state. Unless I have overlooked some remarkable CPU breakthrough
from Intel, that is...
Robert Hyatt Computer and Information Sciences
[EMAIL PROTECTED] University of Alabama at Birmingham
(205) 934-2213 115A Campbell Hall, UAB Station
(205) 934-5473 FAX Birmingham, AL 35294-1170
On Tue, 7 Sep 1999, Rik van Riel wrote:
> On Mon, 6 Sep 1999, Comandante wrote:
>
> > Suppose that I'm writing a piece of code taht uses the FPU, in a SMP
> > system, will be the two units used in paralell if I have two threads
> > using them?
>
> Yes.
>
> > The interrupt for the FPU is XT-PIC ; If I managed to use both FPUs
> > how will the kernel know what FPU of what cpu isued the int??
>
> INT13 is used to signal FPU _error_ situations -- on 386 and
> older 486 machines. Newer 486 machines, Pentia and anything
> newer than that uses the 'Exception 16' mechanism.
>
> In short, INT13 is mostly irellevant to your question.
> (and you should be lucky about that, read the INT13 comments
> in the kernel source :))
>
> Rik
> --
> The Internet is not a network of computers. It is a network
> of people. That is its real strength.
> --
> work at: http://www.reseau.nl/
> home at: http://www.nl.linux.org/~riel/
>
> -
> Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
> To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]
>
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]