RTLinux: Difference between revisions

Content deleted Content added
Remove section 'Design of applications using RT Linux'
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 60:
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:
 
<sourcesyntaxhighlight lang="C">
int init_module(void)
{
Line 72:
...
}
</syntaxhighlight>
</source>
 
The output the program is as follows.