常用的RTOS设计模式(VxWorks中) [英] Design patterns commonly used for RTOS (VXworks)

查看:170
本文介绍了常用的RTOS设计模式(VxWorks中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能帮我常用的RTOS设计模式?结果
在VxWorks中,哪一种模式更preferable?

Can anyone help me on design patterns commonly used for RTOS?
In VXworks, which pattern is more preferable?

推荐答案

我们绝对不能忽视你的问题,第二句?这是没有意义的,也许道出了设计模式的误解。第一部分是有趣但是。这就是说,我会概括它涵盖的实时系统的而不是RTOS。

Can we ignore the second sentence in your question? It is meaningless, and perhaps points to a misunderstanding of design patterns. The first part is interesting however. That said, I would generalise it to cover real-time systems rather than RTOS.

许多最熟悉的模式是机械的,但在实时系统更高级别的架构模式也很重要。

Many of the most familiar patterns are mechanistic, but in real-time systems higher-level architectural patterns are also important.

布鲁斯·鲍威尔·道格拉斯是大概的模式为实时系统主题的最重要的作家。如果你想要的是什么,他不得不说关于这个问题,然后阅读上的一番风味= http://www.embedded.com> Embedded.com (这是三个系列的第三部分,请务必仔细阅读前两个为好,因为他们还对主题触摸,的(1) (2 ))。你也可以做最坏的比参观Embedded.com,进入设计模式进入搜索框,还有一些关于关于这个问题的具体模式和一般文章的文章。

Bruce Powell Douglass is probably the foremost author on the subject of patterns for real time systems. If you want a flavour of what he has to say on the subject then read this article on Embedded.com (it is part three of a series of three; be sure to read the first two as well, since they also touch on the subject, (1) (2)). You could also do worst than to visit Embedded.com and enter "design patterns" into the search box, there are a number of articles on specific patterns and general articles on the subject.

虽然我认为你正在远远地在特定的模式要求为RTOS(VxWorks的)模式我已经专门与VxWorks的使用是的门面适配器模式。部分地提供一种面向对象的API,并且还提供RTOS不可知抽象层次。由此产生的类被然后套件含有Segger emBOS实施(让我们运行一个更小,成本更低,免版税RTOS),以及Windows和Linux允许code的测试,调试和仿真的更丰富的环境更功能强大的工具。

While I think you are being far to specific in requesting patterns for "RTOS(VxWorks)", patterns I have used specifically with VxWorks are the Facade and Adapter patterns. Partly to provide an OO API, and also to provide a level of RTOS agnostic abstraction. The resulting classes were then implemented for Segger emBOS (to allow us to run a smaller, lower cost, royalty free RTOS), and both Windows and Linux to allow test, debug and simulation of the code in a richer environment with more powerful tools.

许多型态的非穷尽列表被设置在维基的,其中许多将适用实时系统。上市并发模式是最明显的相关性。

A non-exhaustive list of many patterns is provided on Wikipedia, many of which will be applicable to real-time systems. The listed concurrency patterns are most obviously relevant.

这篇关于常用的RTOS设计模式(VxWorks中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆