Description: 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 Linux: • Use a fork ()/execv () to create a process to run the program • Use wait () to wait for the end of the newly created process • call gettimeofday () to get the time
To Search:
File list (Check if you may need any files):
Process_control\linux\hello.c
...............\.....\mytime.c
...............\进程控制.docx
...............\linux
Process_control