On Tue, Jan 29, 2002, Ingmar Schuster wrote:

> I was wondering how difficult it would be to port Pth to kernellevel;
> preferably a microkernel. Is Pth suited for such use?

Hmmm... I've never though about such a situation myself (because Pth was
intended as a pure user-land MT facility already from the first day),
but I think it is possible. Because Pth has all the machine context
switching abstracted in pth_mctx.c. So, the main task is to replace
this with the switching the microkernel uses. Additionally, if the
microkernel itself is thread, it might be necessary to use a microkernel
mutex at various places inside Pth's internals if Pth changes its
structures. But start hacking at pth_mctx.c...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to