文件名称:2
-
所属分类:
- 标签属性:
- 上传时间:2015-05-27
-
文件大小:21.22mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。
在Windows下实现:
• 使用CreateProcess()来创建进程
• 使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步
• 调用GetSystemTime()来获取时间
在Linux下实现:
• 使用fork()/execv()来创建进程运行程序
• 使用wait()等待新创建的进程结束
• 调用gettimeofday()来获取时间
mytime的用法:
$ mytime.exe program1
-Design and implementation of Unix " time" command. " Mytime" command accepts command line parameters to run the program, create a separate process to run the program, and record the running time. In the Windows implementation: • Use the CreateProcess () to create a process • Use WaitForSingleObject () between " mytime" command and the newly created process synchronization • Call GetSystemTime () to get the time realized under Linux: • Use fork ()/End execv () to create a process to run the program • Use wait () to wait for the newly created process • call gettimeofday () to get the time mytime usage: $ mytime.exe program1
在Windows下实现:
• 使用CreateProcess()来创建进程
• 使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步
• 调用GetSystemTime()来获取时间
在Linux下实现:
• 使用fork()/execv()来创建进程运行程序
• 使用wait()等待新创建的进程结束
• 调用gettimeofday()来获取时间
mytime的用法:
$ mytime.exe program1
-Design and implementation of Unix " time" command. " Mytime" command accepts command line parameters to run the program, create a separate process to run the program, and record the running time. In the Windows implementation: • Use the CreateProcess () to create a process • Use WaitForSingleObject () between " mytime" command and the newly created process synchronization • Call GetSystemTime () to get the time realized under Linux: • Use fork ()/End execv () to create a process to run the program • Use wait () to wait for the newly created process • call gettimeofday () to get the time mytime usage: $ mytime.exe program1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2/
2/t1/
2/t1/Debug/
2/t1/Debug/t1.exe
2/t1/Debug/t1.ilk
2/t1/Debug/t1.pdb
2/t1/Debug/test1.exe
2/t1/t1/
2/t1/t1.sdf
2/t1/t1.sln
2/t1/t1.v14.suo
2/t1/t1/Debug/
2/t1/t1/Debug/Mytime.obj
2/t1/t1/Debug/t1.log
2/t1/t1/Debug/t1.tlog/
2/t1/t1/Debug/t1.tlog/cl.command.1.tlog
2/t1/t1/Debug/t1.tlog/CL.read.1.tlog
2/t1/t1/Debug/t1.tlog/CL.write.1.tlog
2/t1/t1/Debug/t1.tlog/link.command.1.tlog
2/t1/t1/Debug/t1.tlog/link.read.1.tlog
2/t1/t1/Debug/t1.tlog/link.write.1.tlog
2/t1/t1/Debug/t1.tlog/t1.lastbuildstate
2/t1/t1/Debug/vc140.idb
2/t1/t1/Debug/vc140.pdb
2/t1/t1/Mytime.cpp
2/t1/t1/t1.vcxproj
2/t1/t1/t1.vcxproj.filters
2/test1/
2/test1/Debug/
2/test1/Debug/test1.exe
2/test1/Debug/test1.ilk
2/test1/Debug/test1.pdb
2/test1/test1/
2/test1/test1.sdf
2/test1/test1.sln
2/test1/test1.v14.suo
2/test1/test1/Debug/
2/test1/test1/Debug/test.obj
2/test1/test1/Debug/test1.log
2/test1/test1/Debug/test1.tlog/
2/test1/test1/Debug/test1.tlog/cl.command.1.tlog
2/test1/test1/Debug/test1.tlog/CL.read.1.tlog
2/test1/test1/Debug/test1.tlog/CL.write.1.tlog
2/test1/test1/Debug/test1.tlog/link.command.1.tlog
2/test1/test1/Debug/test1.tlog/link.read.1.tlog
2/test1/test1/Debug/test1.tlog/link.write.1.tlog
2/test1/test1/Debug/test1.tlog/test1.lastbuildstate
2/test1/test1/Debug/vc140.idb
2/test1/test1/Debug/vc140.pdb
2/test1/test1/test.cpp
2/test1/test1/test1.vcxproj
2/test1/test1/test1.vcxproj.filters
2/t1/
2/t1/Debug/
2/t1/Debug/t1.exe
2/t1/Debug/t1.ilk
2/t1/Debug/t1.pdb
2/t1/Debug/test1.exe
2/t1/t1/
2/t1/t1.sdf
2/t1/t1.sln
2/t1/t1.v14.suo
2/t1/t1/Debug/
2/t1/t1/Debug/Mytime.obj
2/t1/t1/Debug/t1.log
2/t1/t1/Debug/t1.tlog/
2/t1/t1/Debug/t1.tlog/cl.command.1.tlog
2/t1/t1/Debug/t1.tlog/CL.read.1.tlog
2/t1/t1/Debug/t1.tlog/CL.write.1.tlog
2/t1/t1/Debug/t1.tlog/link.command.1.tlog
2/t1/t1/Debug/t1.tlog/link.read.1.tlog
2/t1/t1/Debug/t1.tlog/link.write.1.tlog
2/t1/t1/Debug/t1.tlog/t1.lastbuildstate
2/t1/t1/Debug/vc140.idb
2/t1/t1/Debug/vc140.pdb
2/t1/t1/Mytime.cpp
2/t1/t1/t1.vcxproj
2/t1/t1/t1.vcxproj.filters
2/test1/
2/test1/Debug/
2/test1/Debug/test1.exe
2/test1/Debug/test1.ilk
2/test1/Debug/test1.pdb
2/test1/test1/
2/test1/test1.sdf
2/test1/test1.sln
2/test1/test1.v14.suo
2/test1/test1/Debug/
2/test1/test1/Debug/test.obj
2/test1/test1/Debug/test1.log
2/test1/test1/Debug/test1.tlog/
2/test1/test1/Debug/test1.tlog/cl.command.1.tlog
2/test1/test1/Debug/test1.tlog/CL.read.1.tlog
2/test1/test1/Debug/test1.tlog/CL.write.1.tlog
2/test1/test1/Debug/test1.tlog/link.command.1.tlog
2/test1/test1/Debug/test1.tlog/link.read.1.tlog
2/test1/test1/Debug/test1.tlog/link.write.1.tlog
2/test1/test1/Debug/test1.tlog/test1.lastbuildstate
2/test1/test1/Debug/vc140.idb
2/test1/test1/Debug/vc140.pdb
2/test1/test1/test.cpp
2/test1/test1/test1.vcxproj
2/test1/test1/test1.vcxproj.filters
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.