lkml.org 
[lkml]   [1999]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: user context switching?
"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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.030 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site