cos331-hw2
Nicholas Pease
All work is my own
Attached is my HW2 code. One note, nowhere in the homework specifications does it call for this assignment being an "infinite loop", so as a result this program will attempt one execution and finish. If the intent was for it to run continously, uncommenting the lines 15,16 and 67 will restore this functionality.
This program takes the complete filepath of a program and up to three parameters for that program, and attempts to execute it in a new thread. If it fails, it will print out an error message indicating this and exit. If it succeeds, it will run the program and exit both the new thread and the source thread.