Content deleted Content added
Cyberbot II (talk | contribs) m Removing {{Blacklisted-links}}. No blacklisted links were found. (Peachy 2.0 (alpha 8)) |
Format function names as code |
||
Line 58:
== Threads ==
RT-Linux implements a POSIX API for a thread's manipulation. A thread is created by calling the <code>pthread_create
It is necessary to set thread priorities in RTLinux. Threads with higher priorities can preempt threads with lower priorities. For example, we can have a thread controlling a stepper motor. In order to move the motor fluently, it is necessary to start this thread in strictly regular intervals. This can be guaranteed by assigning a high priority to this thread. The example threads2.c sets different thread priorities. Setting of thread priority is done by code shown below:
|