Operating System
Which of the following will trigger an interrupt?
I/O completion
One-to-one model provides more concurrency than the many-to-one model by allowing another thread to run when a thread makes a blocking system call. T or F?
True
OpenMP only works for C, C++, and Fortran programs. T or F?
True
Virtually all contemporary operating systems support kernel threads. T or F?
True
The ________ provides a portion of the system call interface for UNIX and Linux.
Standard C library
What is the degree of multiprogramming for a single-processor system?
1
___________ is a formula that identifies potential performance gains from adding additional computing cores to an application that has a parallel and serial component
Amdahl's Law
The close() system call in UNIX is used to close a file. What is the equivalent system call in Windows?
CloseHandle()
Concurrency is inherently equivalent to parallelism. T or F?
False
Task parallelism distributes threads and data across multiple computing cores. T or F?
False
Which of the following is the denotation of 1024^3 bytes?
GB
Which of the following is not a type of command interpreter?
KDE or GNOME
Which of the following are used by Linux kernel as data structures?
Lists, Stacks, and Queues Hash Functions and Maps Tree Bitmaps
Which of the following statements is incorrect? Operating systems provide both command line as well as graphical user interfaces. An operating system provides an environment for the execution of programs. An operating system manages system resources. Operating systems must provide both protection and security.
Operating systems provide both command line as well as graphical user interfaces.
If process P0 is switched to process P1, state for P0 will be saved into ____, and state from ___ will be reloaded?
PCB0, PCB1
_____ provide(s) an interface to the services provided by an operating system.
System calls
Assume the shared buffer is implemented as a circular array with two logical pointers: in and out. The variable in points to the next free position in the buffer; out points to the first full position in the buffer. Which of the following is true?
The buffer is empty when in == out; The buffer is full when ((in + 1) % BUFFER SIZE) == out;
Which of the following statements is false? The difference in storage capacity between a mobile device and laptop is shrinking. Mobile devices can provide features that are unavailable on desktop or laptop computers. Mobile devices usually have fewer processing cores than a standard desktop computer. Mobile devices must be concerned with power consumption.
The difference in storage capacity between a mobile device and laptop is shrinking.
All processes in UNIX first translate to a zombie process upon termination. T or F?
True
An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations. T or F?
True
Message pass is an IPC mechanism that is easier to implement in a distributed system. T or F?
True
Which of the following defines the view of the operating system seen by most users?
application and system programs
Which of the following is the definition of processor?
a physical chip that contains one or more CPUs
Which of the following is a method for implicit threading? thread pools OpenMP grand central dispatch all of the above
all of the above
Which of the following models are possible for the relationship between the user threads and kernel threads? many-to-one model one-to-one model many-to-many model all of the above
all of the above
Which items are shared across multiple threads belonging to the same process?
code, data, files
A message-passing model is ____.
easier to implement than a shared memory model for intercomputer communication
Which of the following is not an operating system service? protection and security I/O operation program execution graphical user interface
graphical user interface
Which of the following stage triggers the CPU switch from user program to interrupt processing?
interrupt signaled
Which of the following operating system structure is the one for Mach OS?
microkernel
Which of the following operating system structure involves using loadable kernel module in design?
modular approach
Which of the following operating system structure is the one for MS-DOS?
monolithic structure
The Windows CreateFile() system call is used to create a file. What is the equivalent system call in UNIX?
open()
What is the relationship between library call open() and open() system call?
open() invokes open() system call to get service from operating system
What category of system call includes the ones for process creation of and termination?
process control
Which of the following is NOT a secondary storage device? magnetic tape random access memory optical disk solid state disks
random access memory
The list of processes waiting to execute on a CPU is called a ____ queue.
ready
Which of the following computing environments place rigid time requirements on the operation of a processor or the flow of data?
real-time embedded system
Which of the following is an inter-process communication that requires two processes share memory? message passing socket communication shared memory all of the above
shared memory
Which of the following storage medium is the slowest regarding access speed? solid state drive cache register main memory
solid state drive
The two separate modes of operating in a system are
user mode and kernel mode