Midterm Short Answer Flashcards

1
Q

What is the .bashrc file for?

A

interactive shell (not login shell)`

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

Context switching steps

A

first process state must be saved, first process is saved in PCB. Second process is loaded, execution can continue for 2nd process.

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

what is a victim of deadlock resolution?

A

the process with the lowest priority is preempted and all its resources are freed.

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

Describe the 7 common file types in linux

A

regular files, directories, character device files, block device files, local domain sockets, named pipes, symbolic links

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

Deadlock 1

A

Mutual Exclusion

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

Deadlock 2

A

Resource Holding

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

Deadlock 3

A

No Preemption

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

Deadlock 4

A

Circular wait

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

4 conditions needed for deadlock

A

mutual exclusion, resource hoding, no preemption, circular wait

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

Linux filetype 6

A

Local domain socket

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

Linux filetype 7

A

named pipe

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