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

📄 嵌入式365:提升您的价值.htm

📁 嵌入式实时操作系统VxWorks的面试试题.可供对此方向感兴趣的朋友参考.
💻 HTM
📖 第 1 页 / 共 3 页
字号:
  <TR>
    <TD vAlign=top width=166 bgColor=#ffffff height=296>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD class=bg_td width=160>
            <CENTER></CENTER>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD align=middle background=嵌入式365:提升您的价值.files/leftbg.jpg 
                height=20>
                  <P align=center><FONT color=#ffffff>本类浏览排行</FONT> </P></TD></TR>
              <TR>
                <TD align=middle>
                  <P align=center>
                  <TABLE width="98%" align=center>
                    <TBODY>
                    <TR>
                      <TD class=article height=24><IMG height=6 
                        src="嵌入式365:提升您的价值.files/arrow.gif" width=4 
                        align=absMiddle>&nbsp;<A 
                        title="文章标题:uC/OS-II下的网络监控系统的设计&#10;所属分类:LINUX等&#10;浏览人次:309" 
                        href="http://www.emb365.com/article_view.asp?id=21">uC/OS-II下的网络监...</A></TD></TR>
                    <TR>
                      <TD class=article height=24><IMG height=6 
                        src="嵌入式365:提升您的价值.files/arrow.gif" width=4 
                        align=absMiddle>&nbsp;<A 
                        title="文章标题:Windows CE环境下无线网卡的自动安装&#10;所属分类:LINUX等&#10;浏览人次:230" 
                        href="http://www.emb365.com/article_view.asp?id=18">Windows 
                        CE环境下...</A></TD></TR>
                    <TR>
                      <TD class=article height=24><IMG height=6 
                        src="嵌入式365:提升您的价值.files/arrow.gif" width=4 
                        align=absMiddle>&nbsp;<A 
                        title="文章标题:基于嵌入式Linux的智能手机系统设计&#10;所属分类:LINUX等&#10;浏览人次:216" 
                        href="http://www.emb365.com/article_view.asp?id=5">基于嵌入式Linux的智能...</A></TD></TR>
                    <TR>
                      <TD class=article height=24><IMG height=6 
                        src="嵌入式365:提升您的价值.files/arrow.gif" width=4 
                        align=absMiddle>&nbsp;<A 
                        title="文章标题:μC/GUI在MSGl9264液晶上的移植&#10;所属分类:LINUX等&#10;浏览人次:207" 
                        href="http://www.emb365.com/article_view.asp?id=19">μC/GUI在MSGl92...</A></TD></TR>
                    <TR>
                      <TD class=article height=24><IMG height=6 
                        src="嵌入式365:提升您的价值.files/arrow.gif" width=4 
                        align=absMiddle>&nbsp;<A 
                        title="文章标题:μC/OS-II在MCF5272上的移植&#10;所属分类:LINUX等&#10;浏览人次:196" 
                        href="http://www.emb365.com/article_view.asp?id=20">μC/OS-II在MCF5...</A></TD></TR></TBODY></TABLE></P></TD></TR>
              <TR>
                <TD align=middle>
                  <P align=center>
                  <SCRIPT type=text/javascript>
<!--
google_ad_client = "pub-4504476896058302";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></SCRIPT>

                  <SCRIPT src="嵌入式365:提升您的价值.files/show_ads.js" 
                  type=text/javascript>

</SCRIPT>
                  </P></TD></TR>
              <CENTER>
              <TR>
                <TD bgColor=#ffffff height=120>
                  <CENTER></CENTER> </TD></TR></TBODY></TABLE></CENTER></TD></TR></TBODY></TABLE></TD>
    <TD vAlign=top width=588 height=296>
      <TABLE style="BORDER-BOTTOM: 1px" height=218 cellSpacing=0 cellPadding=0 
      width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top width=580 height=18>
            <P align=center>[<A 
            href="http://www.emb365.com/article_list.asp?show=9">单片机</A>] | [<A 
            href="http://www.emb365.com/article_list.asp?show=10">ARM</A>] | [<A 
            href="http://www.emb365.com/article_list.asp?show=11">CPLD/FPGA</A>] 
            | [<A href="http://www.emb365.com/article_list.asp?show=12">DSP</A>] 
            | [<A href="http://www.emb365.com/article_list.asp?show=13">PCB</A>] 
            | [<A 
            href="http://www.emb365.com/article_list.asp?show=14">LINUX等</A>] | 
            [<A href="http://www.emb365.com/article_list.asp?show=16">通信技术</A>] 
            | [<A 
            href="http://www.emb365.com/article_list.asp?show=29">视频技术</A>] | 
            [<A href="http://www.emb365.com/article_list.asp?show=30">其他</A>] | 
            </P></TD></TR>
        <TR>
          <TD vAlign=top width=580 height=21>
            <HR color=#0066ff>
          </TD></TR>
        <TR>
          <TD vAlign=top width=580 height=18>
            <P align=center>VxWorks测试题及解答 </P></TD></TR>
        <TR>
          <TD vAlign=top width=580 height=21>
            <HR color=#0066ff>
          </TD></TR>
        <TR>
          <TD vAlign=top width=580 height=18>
            <SCRIPT type=text/javascript>
<!--
google_ad_client = "pub-4504476896058302";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "008000";
google_color_text = "000000";
//--></SCRIPT>

            <SCRIPT src="嵌入式365:提升您的价值.files/show_ads.js" type=text/javascript>

</SCRIPT>
          </TD></TR>
        <TR>
          <TD vAlign=top width=580 height=36>
            <DIV align=center>
            <CENTER>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD width="22%">[日期:2006-9-16]</TD>
                <TD width="58%">来源:http://blog.sina.com.cn/u/1244756857 
                作者:未知</TD></CENTER>
                <TD width="20%">
                  <P align=right>[人气:12]</P></TD></TR></TBODY></TABLE></DIV></TD></TR>
        <TR>
          <TD vAlign=top width=580 height=18>
            <P align=center>
            <P align=left>关于vxworks的测试题很少,这里推荐一篇满不错的。</P>
            <P>一.&nbsp;闭卷考试(1小时30分钟)</P>
            <P>(一)填空<BR>1.假设tornado安装在c:\tornado 
            ,那么如果要改一个pentium<BR>目标板bootrom下载VxWorks的方式,请问该更改_____目录下的_____文件?</P>
            <P>2.更改下面的bootline,从True Flash File 
            System中下载VxWorks<BR>&nbsp;"fd=0,0(0,0)host:/fd0/vxWorks.st 
            h=90.0.0.3 e=90.0.0.50 
            u=target"<BR> 改为:____________________________________________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>3.使用缺省目录创建一个 
            BSP为ads860的bootable工程testProject,<BR>工程组成文件prjconfig.c 
            在_____目录、syslib.c______目录、<BR>生成的VxWorks在______目录</P>
            <P>4.配置Image 时,出现红色的模块组件,原是 
            _________________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P>
            <P>5.以void demo(int 
            arg1)函数为入口,以10为参数创建一个任务运行,<BR>shell下该键入_______<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>6.使用工具_______来观察中断向量表</P>
            <P>7.调试ISR使用_______调试方式</P>
            <P>8.列举任务间通讯的至少4种方式_______、_______、_______、_______&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P>
            <P>(二)选择<BR>1.假设tornado 
            安装在c:\tornado,make.exe估计应该在什么目录?<BR>a.&nbsp;c:\tornado\host\x86-win32\bin<BR>b.&nbsp;c:\tornado\target\config<BR>c.&nbsp;c:\tornado\target\lib<BR>d.&nbsp;c:\tornado\target\proj\run\default</P>
            <P>2. task1与task2都要以读写方式访问一个数组,应该使用什么semaphore(a.binary b.mutual 
            c.counting);<BR>task1与task2访问数组的代码应该为:<BR>task1:<BR>(a.semGive&nbsp; 
            b.semTake)<BR>访问数组<BR>(a.semGive&nbsp; b.semTake)</P>
            <P>task2:<BR>(a.semGive&nbsp; 
            b.semTake)<BR>访问数组<BR>(a.&nbsp;semGive&nbsp; b.semTake)</P>
            <P>3.程序先后执行了如下代码<BR>msgQId = msgQCreate (numMsg, sizeof (struct 
            msg), MSG_Q_FIFO))<BR>msgQSend (msgQId, (char *) &amp;msg1, sizeof 
            (struct msg),<BR>WAIT_FOREVER, MSG_PRI_NORMAL))<BR>msgQSend (msgQId, 
            (char *) &amp;msg2, sizeof (struct msg),<BR>WAIT_FOREVER, 
            MSG_PRI_URGENT))<BR>msgQSend (msgQId, (char *) &amp;msg3, sizeof 
            (struct msg),<BR>WAIT_FOREVER, MSG_PRI_NORMAL))</P>
            <P>则再有任务执行两次<BR>msgQReceive (msgQId, (char *) 
            &amp;consumedItem,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            sizeof (consumedItem), 
            WAIT_FOREVER)<BR>得到的先后是<BR>a.&nbsp;msg1,msg2<BR>b.&nbsp;msg2,msg3<BR>c.&nbsp;msg3,msg2<BR>d.&nbsp;msg2,msg1<BR>e.&nbsp;msg2,msg2<BR>f.&nbsp;msg1,msg3</P>
            <P>4.比较message queue 与pipe<BR>有prioritization 管理的是(a.message 
            &nbsp;b.pipe&nbsp;c.message 和pipe)<BR>使用标准I/O接口的是(a.message b.pipe 
            c.message 和pipe)<BR>可以使用select 的是(a.message b.pipe c.message 
            和pipe)</P>
            <P>5.exception用什么机制来处理<BR>a.&nbsp;ISR<BR>b.&nbsp;signal<BR>c.&nbsp;task<BR>d.&nbsp;watch 
            dog</P>
            <P><BR>6.下列函数哪些可以在ISR中使用<BR>a.&nbsp;printf<BR>b.&nbsp;logmsg<BR>c.&nbsp;taskSuspend<BR>d.&nbsp;semGive<BR>e.&nbsp;msgQReceive<BR>f.&nbsp;wdStart</P>
            <P>7.watch dog工作在什么方式<BR>a.&nbsp;中断方式<BR>b.&nbsp;任务方式</P>
            <P>(三)问答题<BR>1.在shell下要观察一个为”buffer???”(???为不明确的内容)的字符串内容,该如何操作?</P>
            <P><BR>2.分析如下windview输出结果<BR>tPhil1是为什么失去控制权,tPhil3是为什么失去控制权?</P>
            <P><BR>3.一旦在程序中使用了KernelTimeSlice(10);则不同优先级的任务间的调度方式为?<BR>相同优先级的任务间的调度方式为?</P>
            <P><BR>4.以void test((char *)cp1,int 
            num)为入口,创建一个优先级为100,堆栈为2000,<BR>名称为”test_task”,操作字为0,参数为pointer1和200的任务,写出实现函数和参数</P>
            <P><BR>5. 分析源码<BR>在shell下分别执行-&gt; sp countingSemDemo, 'c' 与-&gt; sp 
            countingSemDemo,<BR>'b',分析两者的运行效果会有什么不同,为什么?</P>
            <P>/* include files */</P>
            <P>#include "vxWorks.h"<BR>#include "wdLib.h"<BR>#include 
            "stdio.h"<BR>#include "semLib.h"<BR>#include "taskLib.h"<BR>#include 
            "usrLib.h"<BR>#include "sysLib.h"</P>
            <P>/* defines */</P>
            <P>#define TASK_PRIORITY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            101<BR>#define TASK_STACK_SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            5000<BR>#define TIME_BETWEEN_INTERRUPTS&nbsp;1&nbsp;&nbsp; /* 1 tick 
            */<BR>#define TASK_WORK_TIME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            2&nbsp;&nbsp; /* 2 ticks */<BR>#define 
            NUM_OF_GIVES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            30&nbsp;&nbsp;</P>
            <P>/* globals */</P>
            <P>/* counting or binary semaphore ID */<BR>LOCAL SEM_ID semId = 
            NULL;&nbsp;&nbsp;</P>
            <P>/* watchdog ID */<BR>LOCAL WDOG_ID wdId = NULL;&nbsp;&nbsp;</P>
            <P>/* tid of syncTask */<BR>LOCAL int syncTaskTid = 
            0;&nbsp;&nbsp;&nbsp;</P>
            <P>/* Number of times semGive is called */<BR>LOCAL int numToGive = 
            NUM_OF_GIVES;</P>
            <P>/* forward declaratiuon */<BR>void syncISR(int);/* ISR to unblock 
            syncTask */<BR>void cleanUp ();&nbsp; /* cleanup routine */<BR>void 
            syncTask (); /* task that needs to be 
            synchronized<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            * with external events */&nbsp;&nbsp;&nbsp;</P>
            <P>/******************************************<BR>&nbsp;* 
            countingSemDemo - demonstrates<BR>&nbsp;&nbsp; task synchronization 
            using counting<BR>&nbsp;* semaphores. User can also select 

⌨️ 快捷键说明

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