previous | start | next

reaper_init()

This function and the reaper() function itself are provided.

In implementing the user level thread library, you are responsible for cleaning up a thread: deallocating its stack and so on.

When does this occur? What thread does it? (It has to be a user level thread; it isn't handled by the kernel.)

This is were the reaper() function plays a role. A reaper thread (with reaper() as its start function) is to clean up detached threads.



previous | start | next