操作系统实验二:进程与线程

时间:2014-01-24 10:15:55
【文件属性】:
文件名称:操作系统实验二:进程与线程
文件大小:6.41MB
文件格式:RAR
更新时间:2014-01-24 10:15:55
操作系统 实验 进程 线程 同步 1. 在windows 下编写一个控制台应用程序,命名为an_ch2_1b。这个程序不断地输出如下行: Those output come from child,[系统时间] 另外写一个控制台应用程序,命名为an_ch2_1a。这个程序创建一个子进程,执行an_ch2_1b。这个程序不断地输出如下行: Those output come from child,[系统时间] 观察程序运行的结果,并对你看到的现象进行解释。你如何修改程序使得两个进程的输出出现在两个不同的控制台窗口上? 2。在windows 环境下编写一个控制台应用程序,输出系统中正在运行的进程的信息,包括进程号、进程所运行的程序、进程的启动时间、在核心态下消耗的时间以及在用户态下消耗的时间。
【文件预览】:
实验一
----an_ch2_1b()
--------an_ch2_1b()
--------an_ch2_1b.sln(893B)
--------UpgradeLog.XML(2KB)
--------_UpgradeReport_Files()
--------an_ch2_1b.ncb(315KB)
--------an_ch2_1b.sln.old(892B)
--------debug()
--------an_ch2_1b.suo(10KB)
--------an_ch2_1b.suo.old(9KB)
----threads_shared()
--------threads_shared.sln(908B)
--------threads_shared.sln.old(907B)
--------UpgradeLog.XML(3KB)
--------threads_shared.suo(9KB)
--------_UpgradeReport_Files()
--------threads_shared()
--------threads_shared.ncb(8.04MB)
--------debug()
--------threads_shared.suo.old(8KB)
----an_ch2_1a()
--------UpgradeLog.XML(2KB)
--------_UpgradeReport_Files()
--------an_ch2_1a.sln(893B)
--------an_ch2_1a()
--------an_ch2_1a.sln.old(892B)
--------debug()
--------an_ch2_1a.ncb(7.27MB)
--------an_ch2_1a.suo(9KB)
--------an_ch2_1a.suo.old(8KB)
----process_inf()
--------process_inf.sln.old(898B)
--------UpgradeLog.XML(3KB)
--------_UpgradeReport_Files()
--------process_inf()
--------debug()
--------process_inf.suo(19KB)
--------process_inf.ncb(8.06MB)
--------process_inf.suo.old(19KB)
--------process_inf.sln(899B)

网友评论

  • 还不错吧,不过我看错了,这是windows系统下的
  • 程序还好,注释不是很详细