CMSC 421 MIDTERM(100% Verified)
Girl TA correct answers Aishwarya sapkale - Teacher correct answers Gerald Tompkins - How might starvation and deadlock happen to processes running in a computer? correct answers Starvation and deadlock can occur in case where something is locked due to another process accessing it and never exiting it such as the Reader's and Writer's problem What is the difference between a named pipe and ordinary pipe? (Other than one has a name and the other does not.) How and why are they used? correct answers -An named pipe is bidirectional and doesn't need to be parent-child related communication -An ordinary pipe is bidirectional and must be parent-child related communication -Pipes are used to communicate by sending/receiving messages between two processes. Thread correct answers Thread is a path of execution within a process and a process is the instance of an execution of an application. Cryptography correct answers Symmetric has the same key on each side while asymmetric each side has a different key. They can both be used when doing something like buying things online. Method: Hashing- taking a string and making it shorter and unique Critical Section correct answers Section where variables are accessed but only one process can execute at a time Solution: Mutal exclusion Race condition correct answers two or more processes are attempting to be run in the critical section Interrupt vs Signal correct answers Interrupt triggered by external components from the CPU while a signal is triggered by something within the CPU Block vs non Block correct answers Block/synchronous: send/recieve is blocked until other is done while Non block/Asynchronous is continuous Process ID correct answers Used by most OS kernels to uniquely identify active process
Información del documento
- Subido en
- 23 de mayo de 2024
- Número de páginas
- 4
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas