
execed.exe program and exits.The code at line 17 of the exec.c program is not executed
unless the execv function fails. (Note that the process.h header file is required to compile
code that uses the execv function.)
Using the Task Manager utility (taskmgr.exe), it is possible to learn about how the
execv function is implemented. If we modify the exec.c and execed.c programs to include
the windows.h header file and to call to the Win32 Sleep function, we can see that
Windows creates a separate process for the executable image to be run on and termi-
nates the calling process; it does not overlay the existing process with the executable
image to be run. ...