⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 fsmlabs的real time linux的内核
💻
字号:
#include "../README"frank_mod.o / frank_app:========================This example features two real-time tasks that can potentially perform somereal work, e.g. data collection. Here they simply write strings into FIFOs.The real-time part creates three RT-FIFOs: two for data passing, and one forcontrol. Then it creates two real-time tasks and registers a handler with thecontrol FIFO.Real-time and non-real-time parts both agree on the format of control messages(see file control.h). Whenever Linux tasks writes to the control FIFO, thehandler is invoked. In the handler the RT-tasks are started and stopped.The real-time tasks are almost identical. They keep writing strings into FIFOs.In the end of each loop each of them makes a request to deschedule itselfuntil the beginning of the next period.The Linux program (app) opens RT-FIFO devices, starts RT-tasks and enters theloop in which it reads and prints the data produced by RT-tasks.To run type `make; make test'rt-handler.o:=============Simple example of rtf_create_rt_handler.a producer thread produces data  (simple and unsigned long i) and rtf_put'sit into fifo 0 -> this triggers the rtfifo realtiem handler p_to_c that wakes up the consumer thread which then rtf_get's the data and prntk's it.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -