Unit 8: Process Management - Subjective Questions

CSE105 — Creative Engineering Workshop • Practice Questions with Detailed Answers

20 questions

1

Define the term process in the context of an operating system. How does a process differ from a program?

2

Explain the different states of a process with a suitable state transition diagram description.

3

What is a Process ID (PID)? Describe its significance and how it is assigned in Unix/Linux systems.

4

Describe the ps command in Linux. Explain its commonly used options with examples.

5

Explain the top command. How does it help in real-time process monitoring? Describe key fields in its output.

6

Distinguish between the ps and top commands.

7

What are jobs in the context of shell process management? Explain the jobs command with an example.

8

Explain foreground and background processes. Describe the fg and bg commands with examples.

9

Describe the kill command in detail. Explain how signals are used to control processes.

10

Explain the pkill command. How does it differ from the kill command?

11

Distinguish between the kill and pkill commands, and explain when each should be preferred.

12

Explain the concept of a zombie process and an orphan process. How do they occur and how are they handled?

13

Describe the significance of the Nice value and priority of a process. How can they be modified in Linux?

14

With suitable examples, explain how to start, suspend, resume, and terminate a job using shell job control commands.

15

Compare foreground and background processes across multiple dimensions, and explain the trade-offs of using each.

16

Explain the concept of a Process Control Block (PCB). What information does it contain and why is it important?

17

Describe the process creation mechanism in Unix/Linux using fork() and exec() system calls.

18

You notice that a runaway process named dataproc is consuming 100% CPU. Describe a complete step-by-step procedure to identify and terminate it using process management commands.

19

Explain the concept of context switching. Describe the steps involved and discuss its overhead.

20

Discuss the various types of signals in Linux and explain how processes can handle, ignore, or be terminated by them.