tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] swapcontext vs pthread, round 4

Reinoud Zandijk <> wrote:

> i'm not sure if i read the patch correctly, but i'd really would like to see
> the setcontext()/swapcontext() to not use a system call. I

Well I do not know if the setcontext() system call is mandatory in
swapcontext(), or if we can do that same thing in usermode, but the
patch does not change the situation. We currently use a system call, and
the patch just rework the system call to add a libc stub that libpthread
can override. 

Note however that the introduced libc stub helps you experimenting
swapcontext without system call: you can override the setcontext stub by
your own full-usermode code.

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index