Midterm Short Answer Flashcards
What is the .bashrc file for?
interactive shell (not login shell)`
Context switching steps
first process state must be saved, first process is saved in PCB. Second process is loaded, execution can continue for 2nd process.
what is a victim of deadlock resolution?
the process with the lowest priority is preempted and all its resources are freed.
Describe the 7 common file types in linux
regular files, directories, character device files, block device files, local domain sockets, named pipes, symbolic links
Deadlock 1
Mutual Exclusion
Deadlock 2
Resource Holding
Deadlock 3
No Preemption
Deadlock 4
Circular wait
4 conditions needed for deadlock
mutual exclusion, resource hoding, no preemption, circular wait
Linux filetype 6
Local domain socket
Linux filetype 7
named pipe