Re: No threads on SPARC? (David Keppel)
Mon, 20 Apr 1992 19:27:32 GMT

          From comp.compilers

Related articles
Info needed (Sparc C compiler w/o register window) clim@ICSI.Berkeley.EDU (1992-04-14)
No threads on SPARC? (was Re: Info needed (Sparc C compiler w/o regist (1992-04-17)
Re: No threads on SPARC? (1992-04-20)
| List of all articles for this month |

Newsgroups: comp.compilers
From: (David Keppel)
Keywords: registers, sparc
Organization: Computer Science & Engineering, U. of Washington, Seattle
References: 92-04-058 92-04-074
Date: Mon, 20 Apr 1992 19:27:32 GMT

> (David Keppel) writes:
>> [Y]ou can't write a truly user-space threads package on the SPARC ... (Frank Mueller) writes:
>I disagree, I implemented a stripped-down version of preemtive Pthreads
>using library implementation techniques.

To clarify (summarizing from e-mail w/ Frank Mueller): a threads package
for code built with the standard C compiler needs to trap to the kernel to
flush the windows on a thread context swap.

The thread scheduling decisions and saving and restoring of ``obvious''
processor state are done in the user space. Thus, the threads package can
be considered user-space, and can be customized and optimized for the
application, etc. However, the kernel trap is still needed, so I consider
the SPARC threads packages I've written to be not truly user-space.

;-D oN ( A terminology-space threads package ) Pardo

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.