Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using P1.c above, do the following questions Only do the questions 8, 10. Remember each questions ask you what commands did you use to execute

image text in transcribed

Using P1.c above, do the following questions

image text in transcribed

image text in transcribed

Only do the questions 8, 10.

Remember each questions ask you what commands did you use to execute to get those answers?.

#include #include #include int main (int argc, char *argv[ 1) { int printchar; if (argc != 2) { fprintf(stderr, "usage: %s character ", argv[0]); exit(1); 3 printchar int i = 1; argv[1][0]; I while (i kill -SIGCONT PID In the first shell window, run P1 with appropriate argument. In the second window, use ps to obtain the process_id of P1. FROM THE SECOND SHELL WINDOW: stop P1 continue (resume) P1 stop P1 continue (resume) P1 terminate P1 What commands did you use? 6. Send your SECOND P1 a Continue signal (SIGCONT) from the keyboard by using the fg command (foreground) with the appropriate job_number, as in the following, assuming 4 is the job_number (use your own job_number, which you can see with the jobs command.): > fg %4 Now you should have the second P1 in the foreground, and the first P1 stopped. Now terminate both processes (using as many steps as you need to). What commands did you use to terminate them

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions