Operating Systems Final (with Complete solutions)
In what way is an operating system like a government correct answers It creates an environment within which other programs can do useful work Which of the following operating systems is not open source correct answers windows the two separate modes of an operating system are correct answers user and kernel what provides an interface to the services provided by an operating system correct answers system calls the windows createProcess() system call creates a new process. the equivalent system call in unix is? correct answers fork() What provides a portion of the system call interface for unix and linux correct answers standard c library Which of the following statements is incorrect? a) an operating system provides an environment for the execution of programs b) an operating system manages system resources c) operating systems provide both command line as well as graphical user interfaces d) operating systems must provide both protection and security correct answers c when a child process is created, what is possible in terms of execution or address space of the child process? correct answers the child process runs concurrently with the parent, the child process has a new program loaded into it, the child is a duplicate of the parent What saves the state of the currently running process and restores the state of the next process to run correct answers context switch what provides an api for creating and managing threads correct answers thread library a counting semaphore is what correct answers essentially an integer variable when does a race condition occur correct answers when several threads try to access and modify the same data concurrently in petersons solution what is the variable that indicates if a process is ready to enter its critical section? correct answers flag[i] what refers to where a process is updating shared data correct answers critical section How many philosophers may eat simultaneously in the dining philosophers problem with 5 philosphers correct answers 2
Información del documento
- Subido en
- 13 de septiembre de 2023
- Número de páginas
- 16
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas