0% found this document useful (0 votes)
144 views2 pages

Midterm PDF

This document contains 71 multiple choice questions about operating system concepts like processes, threads, concurrency, scheduling, memory, and more. The questions cover topics such as pipes, deadlocks, foreground vs background processes, boot blocks, timers, cancellation points, shared memory, message passing, caches, monitors, privileges, kernel modes, process creation, OpenMP, browser process types, Windows and UNIX system calls, and thread scheduling models.

Uploaded by

Paul Horton
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views2 pages

Midterm PDF

This document contains 71 multiple choice questions about operating system concepts like processes, threads, concurrency, scheduling, memory, and more. The questions cover topics such as pipes, deadlocks, foreground vs background processes, boot blocks, timers, cancellation points, shared memory, message passing, caches, monitors, privileges, kernel modes, process creation, OpenMP, browser process types, Windows and UNIX system calls, and thread scheduling models.

Uploaded by

Paul Horton
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Midterm

Study online at quizlet.com/_21oacc


1.

2.

3.

4.

5.

6.

7.

8.

9.

A(n) __________ allows several unrelated processes to use the


pipe for communication.: anonymous pipe
Another problem related to deadlocks is _________.: indefinite
blocking
The ______ application is the application appearing on the
display screen of a mobile device.: foreground
A boot block ____.: typically only knows the location and length
of the rest of the bootstrap program
A ____ can be used to prevent a user program from never
returning control to the operating system.: Timer
Cancellation points are associated with ____ cancellation.:
deferred
A deadlock-free solution eliminates the possibility of
starvation.: False
Deferred cancellation is preferred over asynchronous
cancellation. True/False: True
The difference between a program and a process is that a
program is an active entity while a process is a passive
entity: False

10.

11.

12.
13.

14.

15.

16.

17.

18.

19.

20.

21.

22.

23.
24.

25.

26.

27.

28.

29.

30.

31.

32.

33.

34.

Embedded computers typically run on a ____ operating


system.: Real-Time

35.

Flash memory is slower than DRAM but needs no power to


retain its contents: True

36.

Grand Central Dispatch requires multiple threads.: False


How many philosophers may eat simultaneously in the
Dining Philosopers problem with 5 philosophers: 2
If a program terminates abnormally, a dump of memory
may be examined by a ____ to determine the cause of the
problem.: Debugger
In a(n) _____ temporary queue, the sender must always
block until the recipient receives the message: zero capacity
In Java, data shared between threads is simply declared
globally. True/False: False
In multithreaded programs, the kernel informs an
application about certain events using a procedure known
as a(n) ____.: upcall
In Peterson's solution, the _____ variable indicates if a
process is ready to enter its critical section.: flag[i]
An instruction that executes atomically ______.: executes as a
single, uninterruptible unit
Interrupts may be triggered by either hardware or software:
True
In the Linux CFS scheduler, the task with smallest value of
vruntime is considered to have the highest priority.
True/False: True
In what way is an operating system like a government?: It
creates an environment within which other programs can do
useful work.
iOS is open source, Android is closed source.: False
The i OS mobile operating system only supports a limited
form of multitasking.: True

37.

38.
39.

40.
41.

42.

43.

44.
45.

46.

47.

48.

49.

50.

51.

______ is a mobile operating system designed for the iPhone


and iPad.: iOS
_____ is/are not a technique for passing parameters from an
application to a system call.: Cache memory
__________ is a set of software frameworks that provide
additional services to application developers.: Middleware
____ is a thread library for Solaris that maps many user-level
threads to one kernel thread.: Green threads
_____ is not one of the major categories of system calls.:
Security
____ is the number of processes that are completed per time
unit.: Throughput
It is possible to create a thread library without any kernellevel support.: True
The list of processes waiting for a particular I/O device is
called a(n): device queue
Local Procedure Calls in Windows XP are similar to Remote
Procedure Calls.: True
The Mach operating system treats system calls with message
passing. True/False: True
Mac OS X is a hybrid system consisting of both the Mach
microkernel and BSD UNIX.: True
A message-passing model is ____.: easier to implement than a
shared memory model for intercomputer communication
A microkernel is a kernel ____.: that is stripped of all
nonessential components
Microkernels use _____ for communication.: message passing
Monitors are a theoretical concept and are not practiced in
modern programming languages: False
A mutex lock _____.: is essentially a boolean variable
Mutex locks and counting semaphores are essentially the
same thing.: False
A nonpreemptive kernel is safe from race conditions on
kernel data structures.: True
__________ occurs when a higher-priority process needs to
access a data structure that is currently being acessed by a
lower-priority process.: Priority inversion
Policy ____.: determines what will be done.
A process control block _____.: includes information on the
process's state
The _______ process is assigned as the parent to orphan
processes.: init
A process that has terminated, but whose parent has not
yet called wait(), is know as a ________ process.: zombie
_____ provide(s) an interface to the services provided by an
operating system.: System Calls
The ________ provides a portion of the system call interface
for UNIX and Linux.: Standard C library
Providing a preemptive, priority-based scheduler
guarantees hard real-time functionality. True/False: False
Pthreads refers to ____.: a specification for thread behavior.

52.

53.
54.

55.

56.
57.

Reading and writing to ordinary pipes on both UNIX and Windows systems can be performed like ordinary file I/O. True/False:
True
The ________ refers to the number of processes in memory: degree of multiprogramming
____ scheduling is approximated by predicting the next CPU burst with an exponential average of the measured lengths of
previous CPU bursts.: SJF
A Solaris interactive thread with priority 15 has a higher relative priority than an interactive thread with priority 20. True/False:
False
A system call is triggered by hardware.: False
Systems using a one-to-one model (such as Windows, Solaris , and Linux) schedule threads using process-contention scope
(PCS). True/False: False

58.

Task parallelism distributes threads and data across multiple computing cores. True/False: False

59.

There is no universally accepted definition of an operating system.: True

60.

Thread-local storage is data that ______.: is unique to each thread

61.

To the SYSGEN program of an operating system, the least useful piece of information is _____.: what applications to install

62.

The trend in developing parallel applications is to use implicit threading.: True

63.

Two important design issues for cache memory are ____.: size and replacement policy

64.

A _____ type presents a set of programmer-defined operations that are provided mutual exclusion within it.: monitor

65.

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

66.

What are some other terms for kernel mode?


System mode
Supervisor mode
privileged mode: All of the above

67.

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

68.

When OpenMP encounters the #pragma omp parallel directive, it: creates as many threads as there are processing cores

69.

Which of the following is not a process type in the Chrome browser?: Sandbox

70.

The Windows CreateFile() system call is used to create a file. What is the equivalent system call in UNIX:: Open()

71.

Windows uses the ____.: one-to-one model

You might also like