[Prev][Next][Index][Thread]

Re: User context-switching!



> I know this, but isn't it a smart idea to implement a standard procedure
> to do this?

I have a very small (<500 lines) implementation of user-level threads
which has successfully been used in other lightwieght kernels as well in a
normal C development environment.

It needs gnu asm() syntax and relies on malloc().  It runs on x86 and m68k.

You're welcome to use it:
http://www.cs.wisc.edu/~thain/projects/ThreadKit.html

Douglas Thain
thain@cs.wisc.edu



References: