Description: Create process
File contains under the Windows in the process of creating and Linux algorithm
Design and implement the "time" Unix commands. "Mytime" command through the command line parameters to accept applications, creating a separate process to run this program, and record the process of running time.
Under Windows:
CreateProcess (), use to create process
Use WaitForSingleObject (), in the "new" command and mytime process of creating between synchronization
GetSystemTime (), call for time
To realize the Linux in:
Use fork (,)/execv () to create a process to run the program
Using pro (), waiting for a new process of creating
Gettimeofday (), calls for time
File list (Check if you may need any files):
linux\exec
.....\exec.c
.....\hello
.....\hello.c
windows\mytime.exe
.......\hello.exe
.......\Debug\vc60.idb
.......\.....\vc60.pdb
.......\.....\mytime.pch
.......\.....\mytime.obj
.......\.....\hello.pch
.......\.....\hello.obj
.......\.....\hello.ilk
.......\.....\hello.exe
.......\.....\hello.pdb
.......\mytime.ncb
.......\mytime.plg
.......\hello.ncb
.......\hello.plg
.......\123.h
.......\mytime.cpp
.......\mytime.opt
.......\mytime.dsp
.......\mytime.dsw
.......\hello.dsp
.......\hello.cpp
.......\hello.opt
.......\hello.dsw
.......\Debug
linux
windows