next up previous
Next: simple tasklet example Up: embedded_resources Previous: Resource Linux Provides

Tasklets

Tasklets [5] are the replacement of the bottom half concept that was in use up to kernel 2.2.X (in 2.4.X BH are still supported - but are implemented via tasklets).
The main properties of tasklets:

These properties make it fairly simple to write tasklets. The concept behind them is the same as with the former BH handlers, keep the interrupt or rt-thread small and put all processing steps that may be delayed into a tasklet.

Important for RTLinux is that tasklets are run at every context switch to Linux, they are not delayed until the next hardware interrupt. Tasklets will run before any user-space application will get a chance to run, thus they are a high priority non-rt task that can be easily scheduled from within a rt-thread by calling schedule_tasklet() or schedule_hi_tasklet, whereby the later has higher priority than the first.



Subsections
next up previous
Next: simple tasklet example Up: embedded_resources Previous: Resource Linux Provides
Der Herr Hofrat
2003-01-06