rt_lock()
: Locking a Processrt_clock()
: Timing
rt_gc()
: Triggering Garbage Collectionrt_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.