搜索资源列表
2
- 实验二、进程控制(15分) 设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。 在Windows下实现: 使用CreateProcess()来创建进程 使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步 调用GetSystemTime()来获取时间 在Linux下实现: 使用fork()/execv()来创建进程
DoublePipe
- 匿名管道调用第三方进程,比如调用cmd.exe等,已经封装成类,使用非常方便。而且可以返回在第三方进程中执行的结果字符传。-Anonymous call to a third party pipeline process, such as calling cmd.exe, etc., has been packaged into a class, very easy to use. And it can return results in a third party to perform the
