文件名称:myshell
-
所属分类:
- 标签属性:
- 上传时间:2015-12-19
-
文件大小:17kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实验4 信号处理(20分)
目的:
学习和掌握信号的处理方法,特别是sigaction,alarm,sigpending,sigsetjmp和siglongjmp等函数的使用。
要求:
1、编制具有简单执行时间限制功能的shell:
myshell [ -t <time> ]
这个测试程序的功能类似实验1,但是具有系统shell (在cs8服务器上是bash)的全部功能。<time>是测试程序允许用户命令执行的时间限制,默认值为无限制。当用户命令的执行时间限制到达时,测试程序终止用户命令的执行,转而接收下一个用户命令。
2、myshell只在前台运行。
3、按Ctrl-\键不是中断myshell程序的运行,而是中断当前用户命令的接收或终止当前用户命令的执行,转而接收下一个用户命令。
4、注意信号SIGALRM和SIGQUIT之间嵌套关系的处理。
-Signal Processing Experiment 4 (20 points)
purpose:
Learning and mastering signal processing methods, particularly the use of sigaction, alarm, sigpending, sigsetjmp and siglongjmp and other functions.
Claim:
1, the preparation of the execution time limit with a simple function of shell:
myshell [-t <time>]
This functional test procedures similar to Experiment 1, but with the system shell (on cs8 server is bash) for full functionality. <time> is the test program allows users to command execution time limit, the default value is unlimited. When the user commands the execution time limit is reached, test the program terminates user commands instead receive the next user command.
2, myshell only run in the foreground.
3. Press Ctrl- \ key is not interrupted run myshell program, but the current interruption receiving user commands or terminate execution of the current user commands instead receive the next user command.
4, deal with the relationship between nested at
目的:
学习和掌握信号的处理方法,特别是sigaction,alarm,sigpending,sigsetjmp和siglongjmp等函数的使用。
要求:
1、编制具有简单执行时间限制功能的shell:
myshell [ -t <time> ]
这个测试程序的功能类似实验1,但是具有系统shell (在cs8服务器上是bash)的全部功能。<time>是测试程序允许用户命令执行的时间限制,默认值为无限制。当用户命令的执行时间限制到达时,测试程序终止用户命令的执行,转而接收下一个用户命令。
2、myshell只在前台运行。
3、按Ctrl-\键不是中断myshell程序的运行,而是中断当前用户命令的接收或终止当前用户命令的执行,转而接收下一个用户命令。
4、注意信号SIGALRM和SIGQUIT之间嵌套关系的处理。
-Signal Processing Experiment 4 (20 points)
purpose:
Learning and mastering signal processing methods, particularly the use of sigaction, alarm, sigpending, sigsetjmp and siglongjmp and other functions.
Claim:
1, the preparation of the execution time limit with a simple function of shell:
myshell [-t <time>]
This functional test procedures similar to Experiment 1, but with the system shell (on cs8 server is bash) for full functionality. <time> is the test program allows users to command execution time limit, the default value is unlimited. When the user commands the execution time limit is reached, test the program terminates user commands instead receive the next user command.
2, myshell only run in the foreground.
3. Press Ctrl- \ key is not interrupted run myshell program, but the current interruption receiving user commands or terminate execution of the current user commands instead receive the next user command.
4, deal with the relationship between nested at
(系统自动生成,下载前可以参看下载内容)
下载文件列表
myshell/apue.h
myshell/myerr.h
myshell/myshell
myshell/myshell.c
myshell/实验4信号处理指导.doc
myshell/
myshell/myerr.h
myshell/myshell
myshell/myshell.c
myshell/实验4信号处理指导.doc
myshell/
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.