Within the shell sleep 5 minutes in the background sleep 5m Within the shell

Within the shell sleep 5 minutes in the background

This preview shows page 2 - 3 out of 3 pages.

Within the shell, sleep 5 minutes in the background: sleep 5m & Within the shell, show processes: ps –af CS149 HW1 SPRING 2017
Image of page 2
3 Within the shell, exit the shell: exit Show processes: ps –af Take screenshot of the entire sequence (which includes “ CS149 Shell from … ” from your program) Step b: In step a, the output from two executions of “ ps –af ” should include the same process “ sleep 5m ” with identical PID but with different parent PID (PPID). Explain the reason. ==== Submit the following files as individual files (do not zip them together): CS149_HW1_YourName_L3SID (.pdf, .doc, or .docx), which includes o Q1: answers and justification o Q2: embeds screenshots from step a, and explanation in step b. Screenshots that are not readable, or screenshot without “ CS149 Shell from … ” from the program, will receive 0 point for the entire homework. shell_YourName_L3SID.c Please ident your source code and include comments . Also please follow the exact format for the prompt as specified. Any submission without the proper FirstName and L3SID in the prompt will receive 0 point for the entire homework. The ISA and/or instructor leave feedback to your homework as comments and/or in Crocodoc of your submission. To access Crocodoc, click “view feedback” button. For details, see the following URL: CS149 HW1 SPRING 2017
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Summer '19
  • Shell, Exit, Parent process, Child process

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture