M5 | A Deeper Look at Process Management

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/32

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

33 Terms

1
New cards

Process

A program that is currently running, consuming hardware resources like CPU and RAM.

2
New cards

Kernel

The core part of an operating system that makes decisions about what resources to give processes.

3
New cards

True

True or False:

The kernel is responsible for assigning PIDs to processes.

4
New cards
<p>False </p>

False

True or False:

A program is currently running, taking up hardware resources like CPU and RAM.

5
New cards

Program

A software stored on disk (e.g., Chrome web browser) that becomes a process when executed.

6
New cards

Program

Static software (e.g., Chrome browser) that becomes a process when executed.

7
New cards

True

True or False:

Multiple processes can run from the same program

8
New cards

Process ID (PID)

A unique identifier assigned to each running process.

9
New cards

Background Process (Daemon)

A non-interactive process running behind the scenes (e.g., scheduling, logging).

10
New cards
<p>False</p>

False

True or False:

Users directly interact with background processes.

11
New cards

Parent-Child Relationship

In Linux/Windows, processes are created by parent processes and inherit their environment.

12
New cards

Parent Process

A process that initiates another (child) process (e.g., PowerShell launching Notepad).

13
New cards
<p>False</p>

False

True or False:

In Windows, child processes always terminate when the parent is killed.

14
New cards
<p>False</p>

False

True or False:

PIDs are reused immediately after a process terminates.

15
New cards

init (Linux)

The first process (PID 1) launched by the kernel during boot, spawning all other processes.

16
New cards
<p>False</p>

False

True or False:

init is the Linux equivalent of Windows’ smss.exe.

17
New cards

smss.exe (Windows)

Session Manager Subsystem, the first non-kernel process in Windows, setting up the OS environment.

18
New cards

winlogon.exe (Windows)

Manages user login and launches the Windows GUI.

19
New cards

csrss.exe (Windows) (Client/Server Runtime Subsystem)

It handles Windows GUI and command-line consoles.

20
New cards

Task Manager (taskmgr.exe)

GUI tool to view/kill processes, monitor CPU/RAM usage, and check PIDs.

21
New cards
<p>False</p>

False

True or False:

Task Manager shows only user-launched processes.

22
New cards

taskkill

Command-line utility to terminate processes by PID (e.g., taskkill /pid 1234).

23
New cards

tasklist

Command-line tool to list all running processes and their PIDs in Windows.

24
New cards

Get-Process (PowerShell)

Commandlet to retrieve process details (e.g., CPU/memory usage).

25
New cards

True

True or False:

Get-Process | Sort CPU -descending sorts processes by CPU usage.

26
New cards

Process Explorer

Advanced Microsoft tool to view process hierarchies, file usage, and suspend/restart processes.

27
New cards

ps

Command to list processes (e.g., __ -x for current user, ___ -ef for all processes).

28
New cards

/proc Directory

Virtual filesystem containing real-time process information (e.g., /___/[PID]/status).

29
New cards

top

Interactive command to monitor resource-heavy processes (CPU, memory).

30
New cards

uptime

Shows system runtime, logged-in users, and CPU load averages

31
New cards

lsof

Lists open files and the processes using them (e.g., to troubleshoot "device busy" errors).

32
New cards

PPID (Parent Process ID)

It indicates which process launched the current process.

33
New cards

True

True or False:

In ps -ef output, PPID is listed next to PID.