Question 1
The list of processes waiting for a particular I/O device is called a(n) ____.
Solution: device queueThe list of processes waiting for a particular I/O device is called a(n) ____.
- standby queue
- device queue
- ready queue
- interrupt queue
Question 2
A _________________ saves the state of the currently running process and restores the state of the next process to run.
- save-and-restore
- state switch
- context switch
- process control block
Question 3
The ____ of a process contains temporary data such as function parameters, return addresses, and local variables.
- text section
- data section
- program counter
- stack
Question 4
A process that has terminated, but whose parent has not yet called wait(), is known as a ________ process.
- zombie
- orphan
- terminated
- init
Question 5
The _______ process is assigned as the parent to orphan processes.
- zombie
- init
- main
- renderer
Question 6
Which of the following statements is true?
- Shared memory is typically faster than message passing.
- Message passing is typically faster than shared memory.
- Message passing is most useful for exchanging large amounts of data.
- Shared memory is far more common in operating systems than message passing.
Question 7
A process control block ____.
- includes information on the process's state
- stores the address of the next instruction to be processed by a different process
- determines which process is to be executed next
- is an example of a process queue
Question 8
All processes in UNIX first translate to a zombie process upon termination.
- True
- False
Question 9
Child processes inherit UNIX ordinary pipes from their parent process because:
- The pipe is part of the code and children inherit code from their parents.
- A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents.
- The STARTUPINFO structure establishes this sharing.
- All IPC facilities are shared between the parent and child processes.
Question 10
The _____________ refers to the number of processes in memory.
- process count
- long-term scheduler
- degree of multiprogramming
- CPU scheduler
Question 11
_____ is not considered a challenge when designing applications for multicore systems.
- Deciding which activities can be run in parallel
- Ensuring there is a sufficient number of cores
- Determining if data can be separated so that it is accessed on separate cores
- Identifying data dependencies between tasks.
Solution: Ensuring there is a sufficient number of cores
Question 12
Which of the following would not be an acceptable signal handling scheme for a
multithreaded program?
- Deliver the signal to the thread to which the signal applies.
- Deliver the signal to every thread in the process.
- Deliver the signal to only certain threads in the process.
- Do not deliver the signal to any of the threads in the process.
Question 13
The ____ multithreading model multiplexes many user-level threads to a smaller or equal number of kernel threads.
- many-to-one model
- one-to-one model
- many-to-many model
- many-to-some model
Question 14
A _____ uses an existing thread — rather than creating a new one — to complete a task.
- lightweight process
- thread pool
- scheduler activation
- asynchronous procedure call
Question 15
_________ involves distributing tasks across multiple computing cores.
- Concurrency
- Task parallelism
- Data parallelism
- Parallelism
Question 16
A ____ provides an API for creating and managing threads.
- set of system calls
- multicore system
- thread library
- multithreading model
Question 17
Thread-local storage is data that ____.
- is not associated with any process
- has been modified by the thread, but not yet updated to the parent process
- is generated by the thread independent of the thread's process
- is unique to each thread
Question 18
Signals can be emulated in windows through ____.
- asynchronous procedure calls
- local procedure calls
- remote procedure calls
- synchronous procedure calls
Question 19
Pthreads refers to ____.
- the POSIX standard.
- an implementation for thread behavior.
- a specification for thread behavior.
- an API for process creation and synchronization.
Question 20
According to Amdahl's Law, what is the speedup gain for an application that is 60% parallel and we run it on a machine with 4 processing cores?
- 1.82
- 0.7
- 0.55
- 1.43
No comments:
Post a Comment