COP 4600 with real test.
COP 4600 with real test. What does a process control block include? - correct answers.Information on the process's state: process state/process number/program counter/registers/memory limits/list of open files/... Comparing virtual machines and containers, which one is more light weight and runs more efficiently? - correct answers.Containers Which level of cache is usually owned (not shared) by CPU cores? L1, L2, or L3? - correct answers.L1 Which of the following is not true of a Microkernel? a.) Its ore reliable. b.) Its more efficient to run programs c.) Its easier to port the operating system to new architectures. d.) Its more secure. - correct answers.Its more efficient to run programs. Which approach is usually used by today's OS design? a.) Microkernal-based b.) Monolithic c.) Module-based d.) Layered-based - correct answers.Module-based The _____ of a process contains temporary data such as function parameters, return addresses, and local variables. - correct answers.Stack When a child process is created, what is a possibility in terms of the execution or address space of the child process? a.) the child runs concurrently with the parent b.) the child has a new program loaded into it c.) the child is a duplicate of the parent - correct answers.Psych! It's all of them. What is the current most popular hypervisor on Linux? a.) XEN b.)VMWare Workstation c.) KVM d.) Virtualbox - correct answers.KVM Which of these is not a process state? a.) running b.) ready c.) waiting d.) sleeping - correct answers.Sleeping The list of processes waiting for a particular I/O device is called a(n) ____. - correct e queue Which is true of a message passing model? a.) It's only useful for small, simple OSs b.) It's easier to implement than a shared memory model for intercomputer communication c.) It's faster than the shared memory model d.) It's a network protocol and does not apply to OSs - correct answers.It's easier to implement than a shared memory model for intercomputer communication The major difficulty in designing a layered operating system approach is... a.) Making sure each layer is easily converted to modules. b.) Debugging a particular layer. c.) Appropriately defining the various layers. - correct answers.Appropriately defining the various layers. Which of the following is true of a microkernel? a.) It's stripped of all nonessential components. b.) It's compiled to produce the smallest size possible when stored to a disk. c.) It contains many components that are optimized to reduce resident memory size. d.) It's compressed before lading in order to reduce its resident memory size. - correct answers.It's stripped of all nonessential components. Which of the following is not a benefit of virtual machines? a.) It protects the host system from guest OSs b.) It has the ability to run several different operating systems that all share the same hardware. c.) It uses less physical memory than an actual OS d.) It has the ability to concurrently run several different OSs - correct answers.It uses less physical memory than an actual OS Through which of the following can you NOT pass parameters from an application to a system call? a.) Cache memory b.) Registers c.) Stack d.) Special block in memory. - correct answers.Cache memory Which of the following provides an interface to the services provided by an OS? a.) Shared memory b.) Communication c.) System calls d.) Simulators - correct answers.System calls Which of the following is true of a spinlock? a.) It will ultimately result in a context switch when a process must wait on a lock. b.) It does not require a context switch when a process must wait on a lock. c.) It is useful when locks are expected to be held for long amounts of time. d.) It is never advantageous. - correct answers.It does not require a context switch when a process must wait on a lock. When a process creates a new process using the fork() operation, which of the following state is shared between the parent process and the child process? a.) Stack b.) Heap c.) Shared memory segments d.) Global variables. - correct answers.Shared memory segments T/F: Multi-threading can also improve software performance (speed) when running on a single-core CPU. - correct answers.True What kind of multithreading model multiplexes many user-level threads to a smaller or equal number of kernel threads? - correct answers.Many-to-Many How many processes will be generated in the following code? fork(); fork(); fork(); - correct answers.Correct answers: 8, 6, 4, 0 What presents a set of programmer-defined operations with mutual exclusion? - correct answers.A monitor Which of the following would be an acceptable signal handling scheme for a multithreaded program? a.) Deliver the signal to the thread to which the signal applies. b.) Deliver the signal to every thread in the process. c.) Deliver the signal to only certain threads in the process. d.) None of these e.) All of these - correct answers.All of these
Información del documento
- Subido en
- 15 de diciembre de 2023
- Número de páginas
- 23
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas