Go up to Miscellaneous Go forward to rt_yield() : Descheduling a Thread
|
rt_bind()
: Binding a Thread to a Processorrt_bind
() rt_bind
(n) rt_unbind
() Specification: Binds the currently executing thread to the current process (first version) or to process n (second version). The third version resolves any previous binding of the currently executing thread.
A thread bound to a process is executed by that process only. Process is the initial process on which execution of the RT++ program was triggered.
The main thread) is at program start bound to process .
Constraint: The process number must range from to where is the number of processes in the runtime environment.
Note: Applications of these operations are the protection of input operations, of output operations, and of C++ memory allocation operations.
Implementation: A call of rt_bind
in general involves a
context switch such that the current thread can be scheduled for execution by
another process.