What I want to achieve is to execute some book keeping code before the
descheduling of a thread and after the scheduling of a thread. This bookkeeping
code should save and restore some user space state and perform possibly perform
some recovery. That is why I am thinking of two ways to do that:
- either find where the kernel schedules/deschedules a thread and send a signal
to the user thread to signify the scheduling/descheduling, or
- change the thread library implementation so it can execute this recovery and
book keeping code when it receives a scheduling upcall from the kernel. So,
what I want in this case is the code of the user level dispatcher that handles
the scheduling of the user threads.
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code