Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2002 12:13:21 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        Daniel Eischen <eischen@pcnet1.pcnet.com>
Cc:        Nate Williams <nate@yogotech.com>, Dan Eischen <eischen@vigrid.com>, Peter Wemm <peter@wemm.org>, Archie Cobbs <archie@dellroad.org>, Alfred Perlstein <bright@mu.org>, arch@FreeBSD.ORG
Subject:   Re: Request for review: getcontext, setcontext, etc
Message-ID:  <Pine.BSF.4.21.0201071211360.28827-100000@InterJet.elischer.org>
In-Reply-To: <Pine.SUN.3.91.1020107144700.10060A-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help



On Mon, 7 Jan 2002, Daniel Eischen wrote:
> 
>   Thread 1:
>   ---------
>   /* munch some FP stuff */
>   pthread_yield();  /* allow thread 2 to run */
>   /* munch some more FP stuff */

On which thread's behalf is this later munching being done?

> 
> Assume that pthread_yield only saves the FP control word (which
> is what it does currently in libc_r).
> 
>   Thread 2:
>   ---------
>   /* FP munchy munchy */
>   pthread_yield();   /* allow thread 1 to run */
>   /* FP munchy munch munch */

ditto.. Are you suggesting that the FPU continues to operate on behalf 
of the previous thread after the yield?


> 
> 
> What FP state exists in registers across the call to
> pthread_yield().
> 
> -- 
> Dan Eischen
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-arch" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0201071211360.28827-100000>