Is it possible to ignore the second sentence in your question? This is pointless and perhaps indicates a misunderstanding of design patterns. However, the first part is interesting. However, I would generalize it to cover real-time systems, not RTOS.
Many of the more familiar models are mechanistic, but higher-level architectural patterns are also important in real-time systems.
Bruce Powell Douglas is probably the main author on the topic of patterns for real-time systems. If you need a taste of what he has to say on this subject, read this article on Embedded.com (this is the third part of three, do not forget to read the first two, as they also relate to the topic, (1) (2) ). You can also do worse than visit Embedded.com and enter "design templates" in the search box, there are a number of articles on specific templates and general articles on this subject.
While I think you are very far from specific templates for βRTOS (VxWorks),β the templates that I used specifically for VxWorks are Facade and Adapter . Partially provide the OO API, as well as provide an RTOS agnostic abstraction layer. The resulting classes were then implemented for embOS Segger (to allow us to run smaller, cheaper, free RTOS), and both Windows and Linux to allow testing, debugging, and modeling code in a richer environment with more powerful tools.
A non-exhaustive list of many templates is provided on Wikipedia , many of which will be applicable to real-time systems. The listed concurrency patterns are most important.
source share