3 - Signals Flashcards

1
Q

What is a signal?

A

A mechanism for notifying a process that an event has occurred.

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

True or false: events can occur at any time and come from an external source.

A

True.

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

Can processes block some signals, even overwrite?

A

Yes

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

Can a process ignore a kill command?

A

No.

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

True or false: Each signal type has a system-defined default action.

A

True.

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

What are some actions a process may choose when dealing with a signal?

A

Ignore.
Default.
Programmer-specified handler.

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

What are the exceptions to the Ignore action?

A

SIGKILL and SIGSTOP.

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

What does a system call signal do?

A

Captures a specific function and associates it with a programmer-defined function.

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

How do you use signal system calls?

A

Requires that you include “signal.h” library

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

What does SIGINT do?

A

Interrupt signal from terminal (ctrl + c)

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

What does SIGTSTP do?

A

Stop signal from terminal (ctrl + z)

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

What does SIGCHLD do?

A

A child process has stopped or terminated.

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