📄 嵌入式系统vxworks介绍及编程.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0040)http://drew.nease.net/mypage/VxWorks.htm -->
<HTML><HEAD><TITLE>嵌入式系统VxWorks介绍及编程</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb_2312-80">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot"
name=Template></HEAD>
<BODY vLink=#800080 link=#0000ff
background=嵌入式系统VxWorks介绍及编程.files/background.gif>
<P><BIG>>><A
href="http://drew.nease.net/">Drew的主页</A></BIG>---><BIG><FONT lang=ZH-CN
face=System>VxWorks</FONT></BIG></P>
<DIV align=center>
<CENTER>
<TABLE borderColor=#88deea height=23 cellSpacing=1 borderColorDark=#88deea
width=754 bgColor=#ffffff borderColorLight=#88deea
background=嵌入式系统VxWorks介绍及编程.files/404.htm border=1>
<TBODY>
<TR>
<TD align=middle width=83 height=1>
<P align=center><A href="http://drew.nease.net/"><BIG>主页</BIG></A></P></TD>
<TD align=middle width=83 height=1>
<P align=center><FONT lang=ZH-CN face=System>VxWorks</FONT></P></TD>
<TD align=middle width=84 height=1>
<P align=center><A href="http://drew.nease.net/processor/arm.htm"><FONT
lang=ZH-CN face=System>ARM</FONT></A></P></TD>
<TD align=middle width=84 height=1>
<P align=center><A href="http://drew.nease.net/processor/mpc860.htm"><FONT
lang=ZH-CN face=System>PowerPC</FONT></A></P></TD>
<TD align=middle width=84 height=1>
<P align=center><A href="http://drew.nease.net/mypage/driver.htm"><FONT
lang=ZH-CN face=System>硬件驱动</FONT></A></P></TD>
<TD align=middle width=84 height=1>
<P align=center><A href="http://drew.nease.net/mypage/network.htm"><FONT
lang=ZH-CN face=System>网络协议</FONT></A></P></TD>
<TD align=middle width=84 height=1>
<P align=center><A
href="http://drew.nease.net/mypage/sourcecode.htm"><FONT lang=ZH-CN
face=System>程序示例</FONT></A></P></TD>
<TD align=middle width=84 height=1><A href="http://www.embhelp.com/bbs"
target=_blank><FONT face=System color=#8000ff>技术论坛</FONT></A></TD>
<TD align=middle width=84 height=1>
<P align=center><A href="http://www.embhelp.com/download"><FONT lang=ZH-CN
face=System>下载</FONT></A></P></TD></TR></TBODY></TABLE></CENTER></DIV>
<P align=center> </P>
<P align=center><FONT lang=ZH-CN face=宋体 size=6><B>VxWork介绍及编程</B></FONT><FONT
lang=ZH-CN face=System size=6> </FONT></P>
<P align=center> </P>
<P><BIG><STRONG> </STRONG> </BIG></P>
<TABLE height=104 width="74%" border=0>
<TBODY>
<TR>
<TD width="53%" height=47><BIG><STRONG><A
href="http://drew.nease.net/mypage/bsp_boot.htm">VxWorks
BSP和系统启动装载顺序</A></STRONG> </BIG></TD>
<TD width="47%" height=47><BIG><STRONG><A
href="http://drew.nease.net/mypage/VxWorks.htm#begin">VxWorks系统简介及编程</A></STRONG></BIG></TD></TR>
<TR>
<TD width="53%" height=45><STRONG><BIG><A
href="http://drew.nease.net/mypage/bsp_boot.htm">VxWorks </A><A
href="http://drew.nease.net/mypage/example/vxworksapp.htm">基本概念及常见问题</A> </BIG></STRONG>
</TD>
<TD width="47%" height=45><STRONG><BIG><A
href="http://drew.nease.net/mypage/bsp.htm">BSP 概念解析</A></BIG></STRONG>
</TD></TR></TBODY></TABLE>
<P> </P>
<P> </P>
<HR>
<P> </P>
<P><STRONG><FONT lang=ZH-CN face=宋体 size=5>一.嵌入式操作系统VxWorks简介</FONT><A
name=begin></A></STRONG></P>
<P><FONT
size=3><STRONG>VxWorks</STRONG>操作系统是美国WindRiver公司于1983年设计开发的一种嵌入式实时操作系统(RTOS),是嵌入式开发环境的关键组成部分。良好的持续发展能力、高性能的内核以及友好的用户开发环境,在嵌入式实时操作系统领域占据一席之地。</FONT><FONT
lang=ZH-CN
face=System>它以其良好的可靠性和卓越的实时性被广泛地应用在通信、军事、航空、航天等高精尖技术及实时性要求极高的领域中,如卫星通讯、军事演习、弹道制导、飞机导航等。在美国的</FONT><FONT
lang=ZH-CN face=宋体> F-16</FONT><FONT lang=ZH-CN face=System>、</FONT><FONT
lang=ZH-CN face=宋体>FA-18 </FONT><FONT lang=ZH-CN face=System>战斗机、</FONT><FONT
lang=ZH-CN face=宋体>B-2 </FONT><FONT lang=ZH-CN
face=System>隐形轰炸机和爱国者导弹上,甚至连</FONT><FONT lang=ZH-CN face=宋体>1997</FONT><FONT
lang=ZH-CN face=System>年</FONT><FONT lang=ZH-CN face=宋体>4</FONT><FONT lang=ZH-CN
face=System>月在火星表面登陆的火星探测器上也使用到了</FONT><FONT lang=ZH-CN
face=宋体>VxWorks</FONT><FONT lang=ZH-CN face=System>。</FONT></P>
<BLOCKQUOTE>
<P><A href="http://www.windriver.com/"
target=_blank>WindRiver公司网址</A></P></BLOCKQUOTE>
<P> </P>
<P><FONT lang=ZH-CN face=宋体 size=3><STRONG>实时操作系统和分时操作系统的区别</STRONG></FONT></P>
<BLOCKQUOTE>
<P><FONT lang=ZH-CN face=System>
从操作系统能否满足实时性要求来区分,可把操作系统分成分时操作系统和实时操作系统。</FONT> </P><FONT lang=ZH-CN
face=System>
<P> 分时操作系统按照相等的时间片调度进程轮流运行,分时操作系统由调度程序自动计算进程的优先级,而不是由用户控制进程的优先级。这样的系统无法实时响应外部异步事件。</FONT>
</P><FONT lang=ZH-CN face=System>
<P> 实时操作系统能够在限定的时间内执行完所规定的功能,并能在限定的时间内对外部的异步事件作出响应。</FONT>
<FONT lang=ZH-CN
face=System>分时系统主要应用于科学计算和一般实时性要求不高的场合。实时性系统主要应用于过程控制、数据采集、通信、多媒体信息处理等对时间敏感的场合。</P></FONT></BLOCKQUOTE>
<P><FONT lang=ZH-CN face=宋体 size=4><STRONG>VxWorks的特点</STRONG></FONT>
<UL>
<LI><FONT lang=ZH-CN face=宋体 size=3><STRONG>可靠性</STRONG></FONT> </LI></UL>
<BLOCKQUOTE><FONT lang=ZH-CN face=System>
<P>
操作系统的用户希望在一个工作稳定,可以信赖的环境中工作,所以操作系统的可靠性是用户首先要考虑的问题。而稳定、可靠一直是VxWorks的一个突出优点。自从对中国的销售解禁以来,</FONT><FONT
lang=ZH-CN face=宋体>VxWorks</FONT><FONT lang=ZH-CN
face=System>以其良好的可靠性在中国赢得了越来越多的用户。</FONT><FONT lang=ZH-CN face=宋体>
</P></FONT></BLOCKQUOTE>
<UL>
<LI><FONT lang=ZH-CN face=宋体 size=3><STRONG>实时性</STRONG></FONT> </LI></UL>
<BLOCKQUOTE><FONT lang=ZH-CN face=System>
<P> 实时性是指能够在限定时间内执行完规定的功能并对外部的异步事件作出响应的能力。实时性的强弱是以完成规定功能和作出响应时间的长短来衡量的。</FONT>
</P></BLOCKQUOTE>
<BLOCKQUOTE><FONT lang=ZH-CN face=宋体>
<P> VxWorks </FONT><FONT lang=ZH-CN
face=System>的实时性做得非常好,其系统本身的开销很小,进程调度、进程间通信、中断处理等系统公用程序精练而有效,它们造成的延迟很短。</FONT><FONT
lang=ZH-CN face=宋体>VxWorks </FONT><FONT lang=ZH-CN
face=System>提供的多任务机制中对任务的控制采用了优先级抢占(</FONT><FONT lang=ZH-CN face=宋体>Preemptive
Priority Scheduling</FONT><FONT lang=ZH-CN face=System>)和轮转调度(</FONT><FONT
lang=ZH-CN face=宋体>Round-Robin Scheduling</FONT><FONT lang=ZH-CN
face=System>)机制,也充分保证了可靠的实时性,使同样的硬件配置能满足更强的实时性要求,为应用的开发留下更大的余地。</FONT><FONT
lang=ZH-CN face=宋体> </P></FONT></BLOCKQUOTE>
<UL>
<LI><FONT lang=ZH-CN face=宋体 size=3><STRONG>可裁减性</STRONG></FONT> </LI></UL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -