cygwin.com (Links to an external site.)Links to an external site. : Step 2 . Install cygwin , go to . Keep consistency, use either 64-bit or 32-bit depending on your Windows. Step 3 . Watch the following YouTube video, so that you know how to add the path. Error! Hyperlink reference not valid. Try a simple project such as HelloWorld first.
When debugging the project (Debug -> Debug Project HelloWorld ), you may encounter the pop up window asking for additional paths. In this window, next to debug , add C:\cygwin64\bin\gdb.exe and next to make , add C:\cygwin64\bin\make.exe . This is to include all the necessary build and debug applications. Then, click on OK. 2. Procedures 1) Simulate Process Creation a. Write using your choice C/C++ program to create a child process. Your program should have the following components: · Display a message to indicate the start of the program · Make a system call fork() to create a child process · Use if...else if...else (or switch...case) to determine if the process is created successfully or failed. If successful, print the parent or child process and its ID (getpid() for child process, getppid() for parent) accordingly; if failed, display a message to indicate that it failed.
You've reached the end of your free preview.
Want to read all 5 pages?
- Fall '14
- process management simulation