Due in class at start of class.
Posted 2 October 2000
1)(6 points) Run the ps command as follows and print out the results.
This will give you a list of all processes running at that time.
b. Locate the parent id (ppid) on the ps line and circle it.
c. Find the line that lists that id as the pid. Draw a line from the circled ppid on the ps line, to the pid (of the parent process).
d. Now note the ppid on the line you just indentified, circle it and find that id listed as a pid for a process, draw a line to the new process line.
e. Continue this until you get to pid 0, the scheduler.
First program is to be called loop
List jobs running with their pid. (display on your terminal)
Record (on paper) the command and options you used.
Record all of the information displayed.
B. Suspend the loop process using its job id. Do NOT
bring to foreground first.
Record the command and options you used.
List jobs running with their pid.
Record the command and options you used.
Record the information displayed on the loop process.
C. Use the job id to restart the loop process as a background
process.
Record the command and options you used.
List jobs running with their pid.
Record the command and options you used.
Record the information displayed on the loop process.
D. Suspend the loop using its process id. Do NOT
bring to foreground first
Record the command and options you used.
List jobs running with their pid.
Record the command and options you used.
Record the information displayed on the loop process.
E. Use the job id to bring the get process to the forground
and then hit <ctrl> z to resuspend.
Record the command and options you used.
List jobs running with their pid. (you may have to run this command twice,
because get requested a read of the input buffer, the first
character of the next command issued after suspending the get
may be lost)
Record the command and options you used.
Record the information displayed on the get process.
F. Restart the get as a background process.
Record the command and options you used.
List jobs running with their pid.
Record the command and options you used.
Record the information displayed on the get process.
G. Restart vi as a background process
Record the command and options you used.
List jobs running with their pid.
Record the command and options you used.
Record the information displayed on the vi process.