Go backward to rt_lock(): Locking a Process
Go up to Miscellaneous
Go forward to rt_clock(): Timing

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.


Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: main.tex,v 1.10 1996/04/04 11:45:47 schreine Exp

Prev Up Next