Week 5 - Life of a Process Flashcards
What are processes given to identify it from other processes?
A process ID
What are background processes? What are they also called?
Background processes run in the background (unlike processes in the foreground)
Also called daemon processes
What is the session manager subsystem?
Windows
The first non-kernel/user mode process that loads up on Windows Boot. It prepares the OS.
smss.exe
What is the Windows logon software kicked off by the smss.exe?
Windows
windlogon.exe
What is also kicked off first by the smss.exe besides Windows logon software? What does this software handle?
Client Server Runtime Subsystem, handles the GUI and command line console
csrss.exe
The way processes are created and stopped differ based on ____
the OS
What is the first process Linux uses?
init
When a child process inherits __, __ from its parent, what is that called?
settings, variables are inherited
it’s then called an environment
How do child/parent processes differ in Linux and Windows?
In Windows, child processes can run independently from their parent
With what command do you stop a process in Windows?
taskkill utility
most commonly can use /pid
taskkill /pid ####
What’s the shortcut to open the task manager? Windows
CTRL-SHIFT-ESC
How do you get the PID from the task manager GUI? Windows
Details tab
2 ways to show all running processes in Windows through commands?
- tasklist
- Get-Process
3 ways to get the PID of a process? Windows
- Task Manager > Details tab
- tasklist
- Get-Process
How to view running processes on Linux? 2 ways
Explain what the flags mean
- ps -x
- 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