Re: user context switching?

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Tue, 15 Jun 1999 19:41:17 -0400


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.

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering			 KF8NH
     We are Linux. Resistance is an indication that you missed the point.

- 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/