Re: user context switching?

Jeff Garzik (jgarzik@pobox.com)
Tue, 15 Jun 1999 19:56:36 -0400


"Brandon S. Allbery KF8NH" wrote:
>
> In message <Pine.GSO.3.96.990615191817.5425A-100000@ext1>, Jeff Garzik writes:
> +-----
> | Most of the other Unices implement the getcontext(2) and setcontext(2)
> | functions, as a portable (!!) means of performing a context switch from
> | a userland app (such as a green threads package). Solaris, Tru64
> | (Digital) Unix, DG/UX, Irix, and HP/UX all support these two functions.
> |
> | How difficult would it be to implement these under Linux?
> +--->8
>
> It can be implemented in userspace, using setjmp() and longjmp(); JNOS uses
> them.

Doesn't save all the info. Think of getcontext() as sigsetjmp() and
then some.

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/