Week 5 - Life of a Process Flashcards

1
Q

What are processes given to identify it from other processes?

A

A process ID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are background processes? What are they also called?

A

Background processes run in the background (unlike processes in the foreground)

Also called daemon processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the session manager subsystem?

Windows

A

The first non-kernel/user mode process that loads up on Windows Boot. It prepares the OS.

smss.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Windows logon software kicked off by the smss.exe?

Windows

A

windlogon.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is also kicked off first by the smss.exe besides Windows logon software? What does this software handle?

A

Client Server Runtime Subsystem, handles the GUI and command line console

csrss.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The way processes are created and stopped differ based on ____

A

the OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the first process Linux uses?

A

init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When a child process inherits __, __ from its parent, what is that called?

A

settings, variables are inherited

it’s then called an environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do child/parent processes differ in Linux and Windows?

A

In Windows, child processes can run independently from their parent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

With what command do you stop a process in Windows?

A

taskkill utility

most commonly can use /pid

taskkill /pid ####

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What’s the shortcut to open the task manager? Windows

A

CTRL-SHIFT-ESC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you get the PID from the task manager GUI? Windows

A

Details tab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

2 ways to show all running processes in Windows through commands?

A
  1. tasklist
  2. Get-Process
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

3 ways to get the PID of a process? Windows

A
  1. Task Manager > Details tab
  2. tasklist
  3. Get-Process
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How to view running processes on Linux? 2 ways

Explain what the flags mean

A
  1. ps -x
  2. ps -ef

-x gives you a snapshot of all the processes running
-e gives you everything, all processes, including ones started by other users
-f gives you the full details about a process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What command do you use to view files that correspond to processes on Linux? How do you get more detailed information about the status of a process?

2 answers

A

ls -l /proc

More info:
cat /proc/PIDnumber/status

17
Q

What command do you use to search through the process output for a particular process?
Linux

A

ps -ef | grep Firefox

18
Q

What does smss.exe stand for?

A

Session Manager Subsystem

19
Q

What is a signal?
Windows

A

A signal is a way to tell a process that something has happened

20
Q

What does SIGINT stand for?

A

SIGINT = signal interrupt

21
Q

How do you send a SIGINT signal to a running process? Windows + Linux

A

CTRL + C

22
Q

SIGINT is not supported by which version of Windows?

A

Windows 32-bit

23
Q

What is Process Explorer? Windows

A

A utility provided by Windows used by IT professionals to look at running processes more in-depth

24
Q

What does MUI stand for?

A

Multilingual User Interface

Offers multi-language support (found in Process Explorer)

25
Q

How do you terminate a running process in Linux? 2 ways

A
  1. kill PID#

kill command without any flags sends a termination signal SIGTERM. Kills process but gives it time to clean up resources it was using (prevents file corruption)

  1. kill -KILL PID#

kill command with -KILL SIGKILL signal will overkill terminate process (doesn’t let it clean up resources it was using)

26
Q

What happens if you don’t let a process clean up the files it was working with? For example, forcefully terminating a process with SIGKILL versus a normal SIGTERM signal

A

It can cause file corruption

27
Q

What does SIGTERM and SIGTSTP mean?

A

SIGTERM = signal for terminate
SIGTSTP = signal for terminal stop

28
Q

What command do you use to see the status of a running process? Linux

A

ps -x

doesn’t show up with ps -ef

29
Q

How do you pause/suspend a process in Linux? 3 ways

A
  1. kill -TSTP PID#
  2. CTRL + Z
  3. CTRL + C
30
Q

What’s the keyboard shortcut to pause/suspend a process in Linux?

A

CTRL + Z

31
Q

What does SIGCONT stand for? Linux

A

Continued (signal)

32
Q

With what command do you resume the execution of a process? Linux

A

kill -CONT PID#

33
Q

What are 4 troubleshooting tips for mobile app management?

A
  1. Close out of background apps one by one to find problem app
  2. Clear cache of problem app
  3. Restart device if device is still sluggish after closing all apps
  4. Check battery usage of apps if restarting device temp solves or doesn’t work
34
Q

What are the 5 sections of the ps -ef (view running processes) output on Linux?

A
  1. PID
  2. TTY (terminal associated w/ process)
  3. STAT - status (R, T, S)
  4. TIME - total CPU time used
  5. COMMAND - that we’re running
35
Q

What are 3 things the top command does in Linux

A
  1. provides info on process CPU and memory usage
  2. lists top processes using most resources
  3. provides snapshot of total tasks running/idling
36
Q

In iOS and Android, what’s the first thing you should try when troubleshooting a problem app?

A

close apps, one at a time, starting with foreground app

37
Q

In the output of the ps -ef command, what are the 3 different status types?

A

R - Running
S - Sleeping, interruptible (idle)
T - Stopped

38
Q

In Linux, what process has the PID of 1?

A

init

39
Q

What 3 tools can you use to monitor system resources in Windows?

A

Resource Monitor
Get-Process (PowerShell commandlet)
tasklist