文件名称:ProcessManager
-
所属分类:
- 标签属性:
- 上传时间:2014-11-17
-
文件大小:773.5kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1.进程的创建
编写一段程序,使用系统调用fork()创建两个子进程。当此程序运行时,在系统中有一个父进程和两个子进程活动。让每一个进程在屏幕上显示一个字符:父进程显示字符“a”;子进程分别显示字符“b”和字符“c”。试观察记录屏幕上的显示结果,并分析原因。
2.进程的控制
修改已有程序,将每个进程输出一个字符改为每个进程输出几行字符,再观察程序执行时屏幕上的现象,并分析原因。
如果在程序中使用系统调用lockf()来给每一个进程加锁,可以实现进程之间的互斥,观察并分析出现的现象。
3.进程的软中断通信-Write a program, using the system call fork () to create two sub process. When running, there is a process and the father of two sub process activities in the system. Let each process displays a character on the screen: father process showed character a the child process respectively show the characters B and C character . Examination observation records on the screen to show results, and cause analysis.
编写一段程序,使用系统调用fork()创建两个子进程。当此程序运行时,在系统中有一个父进程和两个子进程活动。让每一个进程在屏幕上显示一个字符:父进程显示字符“a”;子进程分别显示字符“b”和字符“c”。试观察记录屏幕上的显示结果,并分析原因。
2.进程的控制
修改已有程序,将每个进程输出一个字符改为每个进程输出几行字符,再观察程序执行时屏幕上的现象,并分析原因。
如果在程序中使用系统调用lockf()来给每一个进程加锁,可以实现进程之间的互斥,观察并分析出现的现象。
3.进程的软中断通信-Write a program, using the system call fork () to create two sub process. When running, there is a process and the father of two sub process activities in the system. Let each process displays a character on the screen: father process showed character a the child process respectively show the characters B and C character . Examination observation records on the screen to show results, and cause analysis.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
进程管理实验报告.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.