Process Management Flashcards

1
Q

What is a process?

A

A running executable

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

What is process management?

A

It’s controlling the execution of a process

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

What are some examples of process management?

A

Starting (spawning) a new process
Stopping a process
Pausing a process
Modifying the behavior of a process using signals

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

What can manage processes?

A

Users, with shell commands

Other programs or processes, using system calls

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

What does each process have?

A

A unique process identifier (PID)
A parent process (has a PPID)
Its own address space and virtual memory (code segment, data segment, etc..)
Control flows (could be multi-threaded)

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

From a shell, a user can:

A

Start a process (foreground, background)

Send a signal to a process (to suspend, stop, etc)

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

How can a process start a new process?

A
Cloning itself (fork() )
Morphing itself (exec() )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are some system calls related to process management?

A

fork()
exec()
wait()
system()

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