Chapter 1, Chapter 2, Chapter 3, Chapter 4, Chapter 5, Chapter 6, Chapter 7, Chapter 8, Chapter 9, Chapter 10, Chapter 11

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Child processes inherit UNIX ordinary pipes from their parent process because: -A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents. -The STARTUPINFO structure establishes this sharing. -The pipe is part of the code and children inherit code from their parents. -All IPC facilities are shared between the parent and child processes.

A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents.

Which of the following is true in a Mach operating system? -All messages have the same priority. -Multiple messages from the same sender are guaranteed an absolute ordering. -The sending thread must return immediately if a mailbox is full. -It is not designed for distributed systems.

All messages have the same priority.

A process may transition to the Ready state by which of the following actions? -Completion of an I/O event -Awaiting its turn on the CPU -Newly-admitted process -All of the above

All of the above

When a child process is created, which of the following is a possibility in terms of the execution or address space of the child process? -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. -All of the above

All of the above

Which of the following would 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. -All of the above

All of the above

____ is/are not a technique for passing parameters from an application to a system call. -Cache memory -Stack -Special block in memory -Registers

Cache memory

Which of the following is a property of peer-to-peer systems? -They do not offer any advantages over traditional client-server systems. -Separate machines act as either the client of the server but not both. -They suffer from the server acting as the bottleneck in performance. -Clients and servers are not distinguished from one another.

Clients and servers are not distinguished from one another.

The close() system call in UNIX is used to close a file. What is the equivalent system call in Windows: -CloseHandle() -Exit() -CloseFile() -close()

CloseHandle()

Which of the following would lead you to believe that a given system is an SMP-type system? -Each processor is assigned a specific task. -There is a master slave relationship between the processors. -Each processor performs all tasks within the operating system. -None of the above

Each processor performs all tasks within the operating system.

A dual-core system requires each core has its own cache memory. True False

False

A system call is triggered by hardware. True False

False

A thread is composed of a thread ID, program counter, register set, and heap. True False

False

All access to POSIX shared memory requires a system call. True False

False

An initial bootstrap program is in the form of random-access memory (RAM). True False

False

In Java, data shared between threads is simply declared globally. True False

False

Linux distinguishes between processes and threads. True False

False

Shared memory is a more appropriate IPC mechanism than message passing for distributed systems. True False

False

Sockets are considered a high-level communications scheme. True False

False

System calls can be run in either user mode or kernel mode. True False

False

The difference between a program and a process is that a program is an active entity while a process is a passive entity. True False

False

The exec() system call creates a new process. True False

False

The operating system kernel consists of all system and application programs in a computer. True False

False

The single benefit of a thread pool is to control the number of threads. True False

False

UNIX does not allow users to escalate privileges to gain extra permissions for a restricted activity. True False

False

____ was an an implementation of Java threads for Solaris that mapped many user-level threads to one kernel thread. -Sthreads -Java threads -Green threads -Pthreads

Green threads

In what way is an operating system like a government? -It is always concerned primarily with the individual's needs. -It performs most useful functions by itself. -It seldom functions correctly -It creates an environment within which other programs can do useful work.

It creates an environment within which other programs can do useful work.

The most common secondary storage device is ____. -magnetic disk -magnetic disk -dynamic random access memory -random access memory tape drives

Magnetic Disk

____ operating systems are designed primarily to maximize resource utilization. -Handheld computer -Mainframe -Network -PC

Mainframe

____ allow operating system services to be loaded dynamically. -Virtual machines -File systems -Graphical user interfaces -Modules

Modules

Which of the following statements is incorrect? -Operating systems always provide both command line as well as graphical user interfaces. -Operating systems must provide both protection and security. -An operating system always provides an environment for the execution of programs. -An operating system always manages system resources.

Operating systems always provide both command line as well as graphical user interfaces.

_____ tricks an application by having it think it is the only process on the system. -The .NET framework -The Java virtual machine -Paravirtualization -Simulation

Paravirtualization

Which of the following statements is true? -Named pipes do not allow bi-directional communication. -Named pipes can only be used by communicating processes on the same machine. -Only the parent and child processes can use named pipes for communication. -Reading and writing to ordinary pipes on both UNIX and Windows systems can be performed like ordinary file I/O.

Reading and writing to ordinary pipes on both UNIX and Windows systems can be performed like ordinary file I/O.

_____ is not one of the major categories of system calls. -Protection -Communications -Security -Process control

Security

Which of the following statements is true? -Message passing is most useful for exchanging large amounts of data. -Shared memory is far more common in operating systems than message passing. -Shared memory is typically faster than message passing. -Message passing is typically faster than shared memory.

Shared memory is typically faster than message passing.

Which of the following statements regarding threads is false? -Both Pthreads and Win32 threads share global data. -Sharing is automatically provided in Java threads. -The start() method actually creates a thread in the Java virtual machine. -The Java method join() provides similar functionality as the WaitForSingleObject in Win32.

Sharing is automatically provided in Java threads.

Which of the following statements concerning open source operating systems is true? -All open source operating systems share the same set of goals. -Solaris is open source. -Source code is freely available. -They are always more secure than commercial, closed systems.

Source code is freely available.

_____ provide(s) an interface to the services provided by an operating system. -Simulators -Shared memory -Communication -System calls

System calls

A program written for the .NET Framework need not worry about the specifics of the hardware or the operating system on which it will run. True False

True

A socket is identified by an IP address concatenated with a port number. True False

True

A traditional (or heavyweight) process has a single thread of control. True False

True

Application programmers typically use an API rather than directory invoking system calls. True False

True

Deferred cancellation is preferred over asynchronous cancellation. True False

True

Each thread has its own register set and stack. True False

True

Flash memory is slower than DRAM but needs no power to retain its contents. True False

True

For a single-processor system, there will never be more than one process in the Running state. True False

True

In general, Windows system calls have longer, more descriptive names and UNIX system calls use shorter, less descriptive names. True False

True

Interrupts may be triggered by either hardware of software. True False

True

It is possible to create a thread library without any kernel-level support. True False

True

KDE and GNOME desktops are available under open-source licenses. True False

True

Local Procedure Calls in Windows XP are similar to Remote Procedure Calls. True False

True

Many operating system merge I/O devices and files into a combined file because of the similarity of system calls for each. True False

True

Named pipes continue to exist in the system after the creating process has terminated. True False

True

Ordinary pipes in UNIX require a parent-child relationship between the communicating processes. True False

True

Ordinary pipes in Windows require a parent-child relationship between the communicating processes. True False

True

Processors for most handheld devices run at a fraction of the speed of a processor in a PC. True False

True

Some level of hardware support is required to provide virtualization. True False

True

The Mach operating system treats system calls with message passing. True False

True

The virtual-machine [VM] concept is designed to insulate various system resources from processes running on the VM. True False

True

Using a section object to pass messages over a connection port avoids data copying. True False

True

Virtually all contemporary operating systems support kernel threads. True False

True

Virtually all modern operating systems provide support for SMP. True False

True

____ is not an example of a benefit of virtual machines. -The ability to concurrently run several different operating systems -Uses less physical memory than an actual operating system -The ability to run several different operating systems that all share the same hardware -Protects the host system from guest operating systems

Uses less physical memory than an actual operating system

____ is a popular commercial application that abstracts Intel 80XXx86 hardware into isolated virtual machines. -JVM -VMWare -.NET -JIT

VMWare

In Pthreads, a parent uses the pthread_join() function to wait for its child thread to complete. What is the equivalent function in Win32? -wait() -WaitForSingleObject() -join() -win32_join()

WaitForSingleObject()

Which of the following operating systems is not open source? -Linux -BSD UNIX -Windows XP -PCLinuxOS

Windows XP

Pthreads refers to ____. -the POSTFIX standard. -an implementation for thread behavior -an API for process creation and synchronization. -a specification for thread behavior.

a specification for thread behavior

The major difficulty in designing a layered operating system approach is ____. -debugging a particular layer -making sure that each layer hides certain data structures, hardware, and operations from higher-level layers -making sure each layer is easily converted to modules -appropriately defining the various layers

appropriately defining the various layers

A _____ is an example of a systems program. -text formatter -command interpreter -Web browser -database system

command interpreter

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 -none of the above

context switch

If a program terminates abnormally, a dump of memory may be examined by a ____ to determine the cause of the problem. -control card -module -shell -debugger

debugger

Cancellation points are associated with ____ cancellation. -synchronous -asynchronous -deferred -non-deferred

deferred

The _____________ refers to the number of processes in memory. -long-term scheduler -process count -degree of multiprogramming -CPU scheduler

degree of multiprogramming

Policy ____. -determines how to do something -is not likely to change over time -is not likely to change across places -determines what will be done

determines what will be done

The list of processes waiting for a particular I/O device is called a(n) ____. -interrupt queue -ready queue -device queue -standby queue

device queue

A ____ is a custom build of the Linux operating system -VMWare Player -LiveCD -distribution -installation

distribution

A message-passing model is ____. -easier to implement than a shared memory model for intercomputer communication -faster than the shared memory model -a network protocol, and does not apply to operating systems -only useful for small simple operating systems

easier to implement than a shared memory model for intercomputer communication

A _____ provides a file-system interface which allows clients to create and modify files. -file-server system -compute-server system -network computer -file-server system -wireless network

file-server system

The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX: -NTCreateProcess() -process() -fork() -getpid()

fork()

A clustered system ____. -gathers together multiple CPUs to accomplish computational work -is an operating system that provides file sharing across a network -can only operate one application at a time -is used when rigid time requirements are present

gathers together multiple CPUs to accomplish computational work

A process control block ____. -determines which process is to be executed next -is an example of a process queue -stores the address of the next instruction to be processed by a different process -includes information on the process's state

includes information on the process's state

In a virtual machine, each program believes that it has ____. -its own memory -multiple processors -more memory than is physically available on the machine -other "virtual" computer to assist in its operations

its own memory

The ____ multithreading model multiplexes many user-level threads to a smaller or equal number of kernel threads. -many-to-some model -many-to-many model -many-to-one model -one-to-one model

many-t0-many model

The _____ model maps many user-level threads to one kernel thread. -many-to-many -two-level -one-to-one -many-to-one

many-to-one

Microkernals use ____ for communication. -message passing -shared memory -virtualization -system calls

message passing

A(n) ______________ allows several unrelated processes to use the pipe for - anonymous pipe -named pipe -ordinary pipe -LIFO

named pipe

The _____ model maps each user-level thread to one kernel thread. -many-to-many -two-level -one-to-one -many-to-one

one-to-one

Windows XP uses the ____. -one-to-one model -many-to-one model -one-to many-model -many-to-many model

one-to-one model

LWP is ____. -short for lightweight processor -placed between user and kernel threads -common in systems implementing one-to-one multithreading models -placed between system and kernel threads

placed between user and kernel threads

Embedded computers typically run on a ____ operating system. -clustered -Windows XP clustered -real-time -network

real-time

A blocking send() and blocking receive() is known as a(n) _________________ -asynchronous message -blocked message -rendezvous -synchronized message

rendezvous

Two important design issues for cache memory are ____. -size and access privileges -power consumption and reusability -size and replacement policy -speed and volatility

size and replacement policy

Bluetooth and 802.11 devices use wireless technology to communicate over several feet, in essence creating a ____. -personal-area network -wide-area network -local-area network -metropolitan-area network

small-area network

The ____ of a process contains temporary data such as function parameters, return addresses, and local variables. -program counter -stack -text section -data section

stack

A _____ uses an existing thread rather than creating a new one to complete a task. -asynchronous procedure call -lightweight process -scheduler activation -thread pool

thread pool

A ____ can be used to prevent a user program from never returning control to the operating system. -portal -program counter -firewall -timer

timer

The _____ model allows a user-level thread to be bound to one kernel thread. -many-to-many -two-level -one-to-one -many-to-one

two-level

A boot block ____. -is composed of multiple disk blocks -is composed of multiple disk cylinders -typically only knows the location and length of the rest of the bootstrap program -typically is sophisticated enough to load the operating system and begin its execution

typically only knows the location and length of the rest of the bootstrap program

In multithreaded programs, the kernel informs an application about certain events using a procedure known as a(n) ____. -signal -upcall -event handler -pool

upcall

To the SYSGEN program of an operating system, the least useful piece of information is ____. -amount of memory available -what applications to install -operating-system options such as buffer sizes or CPU scheduling algorithms -the CPU being used

what application to install

In a(n) ____ temporary queue, the sender must always block until the recipient receives the message. -zero capacity -variable capacity -bounded capacity -unbounded capacity

zero capacity


संबंधित स्टडी सेट्स

Cultral Geography: Chapter 5 BJU

View Set

125 Basic care and comfort Monday 1-3

View Set

Corporate Accounting 2 - Chapter 23 Statement of Cash Flows

View Set

Management of Promotion Exam 1 Quiz Chapter 3

View Set