CSE5/7343 - Programming Assignment 2 Due Sunday, February 19, 2017 at 11:59 p.m. Uploaded to Canvas You will implement the programming assignment using C on the genuse machines provided by the school. When you are done, create a text file <yourname_ID>.txt in the programming directory and put your full name and ID number in the file. Include this file when you turn in your programming assignment. Do not turn in your assignment as separate files. Include all the files in a .zip folder and upload it to Canvas. Project 1—UNIX Shell and History Feature (Chapter 3 – Process - pages157-159) This project consists of designing a C program to serve as a shell interface that accepts user commands and then executes each command in a separate process. A shell interface gives the user a prompt, after which the next command is entered. The example below illustrates the prompt osh> and the user’s next command: cat prog.c . (This command displays the file prog.c on the terminal using the UNIX cat command.) osh> cat prog.c One technique for implementing a shell interface is to have the parent process first read what the user enters on the command line (in this case, cat prog.c ), and then create a separate child process that performs the command. Unless otherwise specified, the parent process waits for the child to exit before continuing. This is similar in functionality to the new process creation illustrated in Figure 3.10. However, UNIX shells typically also
You've reached the end of your free preview.
Want to read all 4 pages?
- Summer '19
- Operating Systems, Exit, Parent process, Child process