Process_control
所属分类:进程与线程
开发工具:Visual C++
文件大小:233KB
下载次数:4
上传日期:2013-06-23 18:42:48
上 传 者:
deanryan
说明: 设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。
在Windows下实现:
• 使用CreateProcess()来创建进程
• 使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步
• 调用GetSystemTime()来获取时间
(Design and implementation of the Unix " time" command. " Mytime" command via the command line parameter accepts the program to run, create a separate process to run the program, and recording program to run. Under Windows: • Using CreateProcess () to create a process • Use WaitForSingleObject () in " mytime" command and the newly created synchronization between processes • Call GetSystemTime () to get the time)
文件列表:
Process_control\windows\hello.cpp (109, 2013-03-24)
Process_control\windows\mytime.cpp (1582, 2013-03-25)
Process_control\进程控制.docx (276959, 2013-06-23)
Process_control\windows (0, 2013-06-23)
Process_control (0, 2013-06-23)
近期下载者:
相关文件:
收藏者: