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

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

问题描述

任何人都可以帮助我使用常用​​于RTOS的设计模式?

在VXworks中,哪种模式更可取?

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.

Bruce Powell Douglass 可能是实时系统模式主题的最重要的作者。如果您想要了解他对此主题的评价,请阅读本文 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的模式是 Facade 适配器模式。部分提供OO API,并提供一定程度的RTOS无关抽象。然后为Segger emBOS(为了使我们能够运行更小,更低成本,免版税的RTOS)以及Windows和Linux,都可以在更丰富的环境中使用更强大的工具来测试,调试和仿真代码。

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天全站免登陆