\"\" \"\" \"\"
Go backward to rt_lock(): Locking a Process
Go up to Miscellaneous
Go forward to rt_clock(): Timing
RISC-Linz logo

rt_gc(): Triggering Garbage Collection

rt_gc()

Specification: Triggers garbage collection.

Note: Garbage collection reclaims all threads which are not (directly or indirectly) referenced by the main thread. It is possible to prevent an unreferenced thread from being reclaimed by placing it into the root set of the garbage collector.

Implementation: The current thread is descheduled and placed at the end of the ready queue. Therefore another thread may be scheduled for execution after garbage collection has been completed.


Author: Wolfgang Schreiner
Last Modification: April 12, 1997