CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 嵌入式/单片机编程 嵌入式Linux

文件名称:linux1

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2013-03-10
  • 文件大小:
    13.85kb
  • 已下载:
    5次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

本程序分3个子程序,分别使用1个终端运行它们,使用下面的通信机制完成所需功能。

程序1:接受用户输入的信息,包括:help、alarm1、alarm2、quit,并将这些信息分别发送给程序2和程序3。

程序2与程序1通过消息队列1进行通信,当收到help信息后,打开帮助文件helpfile,读取其中的内容,显示出来;当收到quit后,退出程序。

程序3创建2个子进程。程序3与程序1通过消息队列2进行通信,当收到alarm1时,通过信号量1通知子进程1报警(向屏幕输出报警信息);当收到alarm2时,通过信号量2通知子进程2报警(向屏幕输出报警信息)。

要求给出编译所用到的makefile文件。-The program is divided into three sub-programs, respectively, using an end-run them, use the following communication mechanism to complete the desired function. Procedure 1: Accept the information entered by the user, including: help alarm1 alarm2, quit, and information were sent to the program and procedures. Program and procedures through the message queue to communicate, open the help file after receiving help information helpfile read the contents of the displayed Upon receiving the quit exit the program. The program 3 Create two sub-processes. Program 3 and program message queue to communicate, inform the child process semaphore when received alarm1 1 alarm (the alarm information to the screen output) When received alarm2 when the alarm 2 notify the child process via semaphore (alarm information to the screen output). Required to give the file makefile used by the compiler.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

linux1/process3.o
linux1/process2.c
linux1/process1
linux1/helpfile.txt
linux1/process2.o
linux1/process1.o
linux1/process3.c
linux1/process2
linux1/process3
linux1/process1.c
linux1/makefile
linux1

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com