Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CS230 Homework 6 1. Process can be in different states to allocate the resources

ID: 3551585 • Letter: C

Question

CS230 Homework 6

1. Process can be in different states to allocate the resources better. List the symbol and meaning for each of these states. (10 points)

2. What does it mean to spawn a process? (10 points)

3. How can you determine what processes are owned by the current login user? (10 points)

4. Compare and contrast a job number with a process identification number.(10 points)

5. For this questions, refer to the following listing: (each 10 points)

    [2]          Stopped          sort       /etc/passwd

    [3]    -     Stopped          vi    .cshrc

    [4]   +     Stopped          more    .login

    [5]           Running          find / -name  foo

(1) What command would you use to bring the vi editor to the foreground?

(2) What is the command you would use to kill the more?

(3) What is the command you would use to get this listing?

6. Compare and contrast background and foreground jobs. Include the syntax you use to place a command in foreground and in background.(10 points)

7. What is the function of jobs command? (10 points)

8. How do you bring a job from foreground to background? Write down the steps (10 points)

Explanation / Answer


1)

2)

Spawn in computing refers to a function that loads and executes a new child process. The current process may wait for the child to terminate or may continue to execute asynchronously. Creating a new subprocess requires enough memory in which both the child process and the current program can execute.

Spawning Processes