COSC 80 | Midterms Flashcards

1
Q

a program that controls the execution of application programs and acts as an interface between the user of a computer and the computer hardware

A

Operating System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

a software that manages a computer’s hardware

A

Operating System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Operating System is the one program running at all times on the computer (usually called ____), with all else being application programs

A

kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

the most important part of the operating system. It is the primary interface between the hardware and the processes of a computer

A

kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Components of a computer system

A
  • hardware
  • application programs
  • operating system
  • users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

the central processing unit (CPU), the memory, and the I/O devices provides the basic computing resources for the system

A

hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

word processors, compilers, web browsers define the ways in which these resources are used to solve users’ computing problems;

A

application programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

controls the hardware and coordinates its use among the various application programs for the various users

A

operating system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

users of a computer system

A

users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Abstract view of the components of a computer system

A

user
application programs
operating system
computer hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Typically, operating systems have a ____ for each device controller

A

device driver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

it understands the device controller and provides the rest of the operating system with a uniform interface to the device

A

device driver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

General-purpose computers run most of their programs from rewritable memory, called ____ (also called ____)

A

main memory
RAM or Random-Access Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

a flexible and volatile type of storage device

A

Main Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

commonly is implemented in a semiconductor technology called DRAM (Dynamic Random-Access Memory)

A

Main Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

a semiconductor technology called ____

A

DRAM (Dynamic Random-Access Memory)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

this instruction moves a byte or word from main memory to an internal register within the CPU

A

load instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

this instruction moves the content of a register to main memory

A

store instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

An Operating system is a ____. The system’s CPU, memory space, file-storage space, and I/O devices are among the resources that the operating system must manage

A

resource manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Resource Management in OS

A
  1. Process Management
  2. Memory Management
  3. File-System Management
  4. Mass-Storage Management
  5. Cache Management
  6. I/O System Management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

A ___ is a program in execution.
* A program such as compiler is a ___;
* A word-processing program being run by an individual user on a PC is a ___

A

process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

A process needs certain ___– it includes CPU time, memory, files, and I/O devices–to accomplish its task.
* These ___ are typically allocated to the process while it is running.
* In addition to the physical and logical resources that a process obtains when it is created, various initialization data (input) may be passed along.

A

resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

A program is a ___, like the contents of a file stored on disk, whereas a process is an ___.
* The execution of such a process must be sequential.
* The CPU executes one instruction of the process after another, until the process completes

A

passive entity
active entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

A ___ is the unit of work in a system. A system consists of collection of processes, some of which are operating-system processes and the rest of which are user processes.

A

process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

___ is central to the operation of a modern computer system.
* ___ is a repository of quickly accessible data shared by the CPU and I/O devices.
* The ____ is generally the only large storage device that the CPU is able to address and access directly

A

Main Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

To improve both the utilization of the CPU and the speed of the computer’s response to its users, general-purpose computers must keep several programs in memory, creating a need for ____

A

memory management

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

____ is one of the most visible components of an operating system

A

File Management

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

in file management, physical media such as __ is the most common, but ___ is also possible

A

secondary storage
tertiary storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

A ___ is a collection of related information defined by its creator.
* Commonly, ___ represent programs (both source and object forms) and data.

A

file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

___ may be numeric, alphabetic, alphanumeric or binary

A

Data files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Files may be __ like text files or formatted rigidly such as mp4 file format

A

free-form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Most modern computer systems use ___ as the principal on-line storage media for both programs and data.
* Most programs – including compilers, web browsers, word processors, and games – are stored on these devices until loaded into memory.

A

HDDs and NVM devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Since secondary storage is used frequently and extensively, it must be used ___.
* The entire speed of operation of a computer may hinge on the speeds of the secondary storage sub-system and the algorithms that manipulate that sub-system

A

efficiently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

___ is an important principle of computer systems. In ___, information is normally kept in some storage system (such as main memory).
* As it is used, it is copied into a faster storage system – the __ - on a temporary basis.

A

Caching
Cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Because caches have limited size, ___ is an important design problem.
* Careful selection of the cache size and of a replacement policy can result in greatly increased performance

A

cache management

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

One of the purposes of an operating system is to hide the peculiarities of specific hardware devices from the user.
For example, in UNIX, the peculiarities of I/O devices are hidden from the bulk of the operating system itself by the ___.

A

I/O subsystem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

this type of operating system does not interact with the computer directly

A

Batch Operating System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

An __ is present which takes similar jobs having the same requirement and groups them into batches

A

operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

___ can be illustrated as more than one program is present in the main memory and any of them can be kept in execution.
* As a result, various jobs may share CPU time.

A

Multiprogramming Operating Systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

___ is a type of operating system in which more than one CPU is used for the execution of resources

A

Multiprocessing Operating System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

___ is simply a multiprogramming operating system with having facility of a Round-Robin Scheduling Algorithm.
* It can run multiple programs simultaneously

A

Multitasking Operating System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

___ – each task is given some time to execute so that all the tasks work smoothly.
* Each user gets the time of the CPU as they use a single system.
* The task can be from a single user or different users

A

Time-Sharing Operating Systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

___ – it uses many central processors to serve multiple real-time applications and users.
* Independent systems process their own memory unit and CPU

A

Distributed Operating System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

___ – These systems run on a server and provide the capability to manage data, users, groups, security, applications, and other networking functions.
* These types of operating systems allow shared access to files, printers, security, applications, and other networking functions over a small private network.

A

Network Operating System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

it provides an environment for the execution of programs

A

operating system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

One set of operating system services provides functions that are helpful to the user:

A
  • user interface
  • program execution
  • i/o operations
  • file-system manipulation
  • communications
  • error detection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

Another set of operating-system functions is for ensuring the efficient operation of the system itself:

A
  • resource allocation
  • logging
  • protection and security
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

The interface is a window system with a mouse that servers as a pointing device to direct I/O, choose from menus, and make selections and a keyboard to enter text

A

graphical user interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

it uses text commands and a method for entering them is also another option

A

command-line interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

The system must be able to load a program into memory and to run that program. The program must be able to end its execution, either normally or abnormally.

A

program execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

A running program may require I/O, which may involve a file or an I/O device. For specific devices, special functions may be desired (such as reading from a network interface or writing to a file system). For efficiency and protection, users usually cannot control I/O devices directly. Therefore, the operating system must provide a means to do I/O

A

I/O operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

Programs need to read and write files and directories. They also need to create and delete them by name, search for a given file, and list file information. Finally, some operating systems include permissions management to allow or deny access to files or directories based on file ownership

A

file-system manipulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

it may be implemented via shared memory or message passing

A

communications

54
Q

two or more processes read and write to a shared section of memory

A

shared memory

55
Q

packets of information in predefined formats are moved between processes by the operating system

A

message passing

56
Q

The operating system needs to be detecting and correcting errors constantly. Errors may occur in the CPU and memory hardware, in I/O devices, and in the user program. For each type of error, the operating system should take the appropriate action to ensure correct and consistent computing

A

error detection

57
Q

When there are multiple processes running at the same time, resources must be allocated to each of them. The operating system manages many different types of resources. Some may have special allocation code, whereas others may have much more general request and release code

A

resource allocation

58
Q

This record keeping may be used for accounting (so that users can be billed) or simply accumulating usage statistics. Usage statistics may be valuable tool for system administrators who wish to reconfigure the system to improve computing services

A

logging

59
Q

it involves ensuring that all access to system resources is controlled

A

protection

60
Q

starts with requiring each user to authenticate himself or herself to the system, usually by means of a password, to gain access to system resources

A

security

61
Q

a special program that is running when a process is initiated or when a user first logs on

A

command interpreter

62
Q

the interpreters are known as ___

A

shells

63
Q

The main function of the ___ is to get and execute the next user-specified command

A

command interpreter

64
Q

Rather than entering commands directly via a command-line interface, users employ a mouse-based window-and-menu system characterized by a desktop metaphor. The user moves the mouse to position its pointer on images, or icons, on the screen (the desktop) that represent programs, files, directories, and system functions

A

graphical user interface

65
Q

users interact by making gestures on the touch screen – for example, pressing and swiping fingers across the screen. Although earlier smartphones included a physical keyboard, most smartphones and tablets now simulate a keyboard on the touch screen

A

touch-screen interface

66
Q

it provides an interface to the services made available by an operating system. These calls are generally available as functions written in C and C++

A

system calls

67
Q

it specifies a set of functions that are available to an application programmer, including the parameters that are passed to each function, and the return values the programmer can expect

A

application programming interface

68
Q

Actual system calls can often be more detailed and more difficult to work with than the API available to an application programmer

true or false

A

true

69
Q

the full suite of software needed to execute applications written in a given programming language, including its compilers or interpreters as well as other software, such as libraries and loaders

A

run-time environment

70
Q

RTE provides ___ that serves as the link to system calls made available by the operating system

A

System-Call Interface

71
Q

it intercepts function calls in the API and invokes the necessary system calls within the operating system

A

System-Call Interface

72
Q

a number is associated with each system call, and the system-call interface maintains a table indexed according to these numbers

true or false

A

true

73
Q

The simplest approach to pass parameters to the operating system is to pass the parameters in indexes

true or false

A

false

The simplest approach to pass parameters to the operating system is to pass the parameters in registers

74
Q

types of system calls

A
  • process control
  • file management
  • device management
  • information maintenance
  • communication
  • protection
75
Q

A running program needs to be able to halt its execution normally. If a system call is made to terminate the currently running program abnormally, or if the program runs into a problem and causes an error trap, a dump of memory is sometimes taken and an error message generated

A

process control

76
Q

In this, either system call requires the name of the file and perhaps some of the file’s attributes

A

file management

77
Q

A process may need several resources to execute–main memory, disk drives, access to files, and so on.

If the resources are available, they can be granted, and control can be returned to the user process. Otherwise, the process will have to wait until sufficient resources are available

A

device management

78
Q

Many system calls exist simply for the purpose of transferring information between the user program and the operating system

A

information maintenance

79
Q

the communicating process exchange messages with one another to transfer information. Messages can be exchanged between the processes either directly or indirectly through a common mailbox

A

message-passing model

80
Q

processes such as shared_memory_create() and shared_memory_attach() system calls to create and gain access to regions of memory owned by other processes

A

shared-memory model

81
Q

it provides a mechanism for controlling access to the resources provided by a computer system

A

protection

82
Q

security was a concern only on multi-programmed computer systems with several users

true or false

A

false

protection was a concern only on multi-programmed computer systems with several users

83
Q

it also known as system utilities– it provides a convenient environment for program development and execution. Some of them are simply user interfaces to system calls

A

system services

84
Q

what are the system services?

A
  • file management
  • status information
  • file modification
  • programming-language support
  • program loading and execution
  • communications
  • background services
85
Q

these programs create, delete, copy, rename, print, list, and generally access and manipulate files and directories

A

file management

86
Q

some programs simply ask the system for the date, time, amount of available memory or disk space, number of users, or similar status information

A

status information

87
Q

Some systems also support a ____, which is used to store and retrieve configuration information

A

registry

88
Q

Several text editors may be available to create and modify the content of files stored on disk or other storage devices

A

file modification

89
Q

compilers, assemblers, debuggers, and interpreters for common programming languages (such as C, C++, Java, and Python) are often provided with the operating system or available as separate download

A

programming-language support

90
Q

once a program is assembled or compiled, it must be loaded into memory to be executed. The system may provide absolute loaders, relocatable loaders, linkage editors, and overlay loaders

A

program loading and execution

91
Q

These programs provide the mechanism for creating virtual connections among processes, users, and computer systems. They allow users to send messages to one another’s screens, to browse web pages, to send e-mail messages, to log in remotely, or transfer files from one machine to another

A

communications

92
Q

all general-purpose systems have methods for launching certain system-program processes at boot time. Some of these processes terminate after completing their tasks, while others continue to run until the system is halted

A

background services

93
Q

A ___is a program in execution

A

Process

94
Q

A Program is passive; a process is active

true or false

A

true

95
Q

The OS has to load executable from hard disk to main memory, keep track of the ___ of each process currently executed

A

states

96
Q

A Process consists of (at least)

A

address space
cpu state
os resources

97
Q

The code (instructions) for the running program;
The data for the running program (static data, heap data, stack)

A

address space

98
Q

The program counter (PC), indicating the next instruction;
Stack pointer
Other general purpose register values

A

CPU state

99
Q

open files, network connections, sound channels, etc.

A

OS resources

100
Q

process state

A
  • new
  • running
  • waiting (blocked)
  • ready
  • terminated
101
Q

The process is about to be created but not yet created. It is the program that is present in secondary memory that will be picked up by OS to create the process

A

new

102
Q

The process is chosen from the ready queue by the CPU for execution and the instructions within the process are executed by any one of the available CPU cores.

A

running

103
Q

Whenever the process is waiting for an event, it enters the waiting state or block state. The process continues to wait in the main memory and does not require CPU.

A

waiting (blocked)

104
Q

After the creation of a process, the process enters the ready state

A

ready

105
Q

Processes that are ready for execution by the CPU are maintained in a queue called

The process is ready to run and I waiting to get the CPU
time for its execution.

A

ready queue

106
Q

The process is released or de-allocated

A

terminated

107
Q

Each process is represented in the operating system by a ___ also called a task control block. ___ contains information associated with a specific process

A

process control block (PCB)

108
Q

process control block includes

A
  • process state
  • program counter
  • CPU registers
  • CPU-scheduling information
  • memory-management information
  • accounting information
  • I/O status information
109
Q

The state may be new, ready, running, waited, halted, etc.

A

process state

110
Q

The counter indicates the address of the next instruction to be executed for this process.

A

program counter

111
Q

This information includes a process priority, pointers to scheduling queues, and any other scheduling parameters.

A

CPU-scheduling information

111
Q

The registers vary in number and type, depending on the computer architecture. They include accumulators, index registers, stack pointers, and general-purpose registers. Along with the program counter, this state information must be saved when an interrupt occurs, to allow the process to be continued correctly afterward when it is re-scheduled to run.

A

CPU registers

112
Q

This information may include such items as the value of the base and limit registers and the page tables, or the segment tables, depending on the memory system used by the operating system

A

memory-management information

113
Q

This information includes the list of I/O devices allocated to the process, a list of open files, etc.

A

I/O status information

113
Q

This information includes the amount of CPU and real time used, time limits, account numbers, job or process numbers, etc.

A

accounting information

114
Q

it selects an available process (possibly from a set of several available processes) for program execution on a core. Each CPU core can run one process at a time.

A

process scheduler

115
Q

contains those processes that are ready to run

A

ready queue

116
Q

contains those processes that are waiting for a certain event to occur

A

wait queue

117
Q

it is a task where switching the CPU core to another process requires performing a state save of the current process and a state restores of a different process.

A

context switch

118
Q

performs a state save of the current state of the CPU core

A

state save

119
Q

to resume operations

A

state restore

120
Q

Categories in Scheduling falls into two categories

A

non-preemptive and preemptive

121
Q

a process’s resource cannot be taken before the process has finished running. When a running process finishes and transitions to a waiting state, resources are switched

A

non-preemptive

122
Q

the OS assigns resources to a process for a predetermined period of time. The process switches from running state to ready state or from waiting state to ready state during resource allocation. This switching happens because the CPU may give other processes priority and substitute the currently active process for the higher priority process

A

preemptive

123
Q

process schedulers

A
  • long term or job scheduler
  • short-term or CPU scheduler
  • medium-term scheduler
124
Q
  • ____ brings the new process to the Ready State. It controls the Degree of Multi-programming, i.e., the number of processes present in a ready state at any point in time.
  • It increases efficiency by maintaining a balance between I/O and CPU-bound processes.
  • They operate at a high level and are typically used in batch-processing systems.
A

Long term scheduler

125
Q
  • ___ is responsible for selecting one process from the ready state for scheduling it on the running state.
  • In ____, all scheduling algorithms are used.
  • The ____ is responsible for ensuring no starvation due to high burst time processes.
A

Short-Term scheduler or CPU scheduler

126
Q

it is responsible for loading the process selected by the Short-term scheduler on the CPU (Ready to Running State) Context switching is done by ____ only

A

the dispatcher

127
Q

The dispatcher does the following:

A
  • Switching Context;
  • Switching to user mode;
  • Jumping to the proper location in the newly loaded program.
128
Q

It is responsible for suspending and resuming process. It mainly does swapping (moving processes from main memory to disk and vice versa).
It is helpful in maintaining a perfect balance between the I/O bound and the CPU bound.
It reduces the degree of multiprogramming.

A

medium-term scheduler

129
Q

it may be necessary to improve the process mix or because a change in memory requirements has overcommitted available memory, requiring memory to be freed up.

A

swapping

130
Q

the number of processes present in a
ready state at any point in time

A

degree of multi-programming