1.4 Operating-System Operations Flashcards

1
Q

An operating system provides the environment within which programs are _______.

A

executed

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

The initial program that a computer runs when powered up or rebooted is called the _______.

A

bootstrap program

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

The bootstrap program is typically stored in _______.

A

firmware

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

The bootstrap program initializes all aspects of the system, including _______.

A

CPU registers, device controllers, memory contents

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

The bootstrap program must locate the _______ and load it into memory.

A

operating-system kernel

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

Once the kernel is loaded and executing, it starts providing _______ to the system and its users.

A

services

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

System programs loaded into memory at boot time become _______.

A

system daemons

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

On Linux, the first system program that starts many other daemons is _______.

A

systemd

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

If there are no processes to execute, an operating system will sit quietly, waiting for something to _______.

A

happen

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

Events are almost always signaled by the occurrence of an _______.

A

interrupt

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

A trap (or an exception) is a software-generated interrupt caused by an error or a specific request from a user program that an operating-system service be performed by executing a _______.

A

system call

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

An example of an error that can cause a trap is _______.

A

division by zero

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

Another example of an error that can cause a trap is _______.

A

invalid memory access

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

One of the most important aspects of operating systems is the ability to run multiple programs, as a single program cannot, in general, keep either the CPU or the I/O devices busy at all times. This is known as _______.

A

multiprogramming

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

In a multiprogrammed system, a program in execution is termed a _______.

A

process

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

The operating system keeps several processes in _______ simultaneously.

A

memory

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

When a process needs to wait for some task, such as an I/O operation, the CPU would switch to _______ in a multiprogrammed system.

A

another process

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

In a non-multiprogrammed system, the CPU would sit _______.

A

idle

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

Multitasking is a logical extension of _______.

A

multiprogramming

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

In multitasking systems, the CPU executes multiple processes by _______ among them.

A

switching

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

When a process executes, it typically executes for only a _______ time before it either finishes or needs to perform I/O.

A

short

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

Interactive I/O may take a long time to complete, often bounded by the user’s _______ speed.

A

typing

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

Having several processes in memory at the same time requires some form of _______ management.

A

memory

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

Making the decision of which process will run next is known as _______ scheduling.

A

CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
A common method for ensuring reasonable response time in a multitasking system is _______ memory.
virtual
26
The main advantage of virtual memory is that it enables users to run programs that are larger than actual _______ memory.
physical
27
Multiprogramming and multitasking systems must also provide a _______ system.
file
28
To ensure orderly execution, the system must also provide mechanisms for process _______ and communication.
synchronization
29
The system may ensure that processes do not get stuck in a _______.
deadlock
30
A properly designed operating system must ensure that an incorrect (or malicious) program cannot cause other programs or the operating system itself to execute incorrectly. True or False?
True
31
What are the two separate modes of operation in an operating system?
User mode and kernel mode
32
The bit that indicates the current mode of operation in a computer system is called the _______.
mode bit
33
In kernel mode, the mode bit is set to _______.
0
34
In user mode, the mode bit is set to _______.
1
35
When a user application requests a service from the operating system, the system must transition from _______ to _______ mode.
user mode to kernel mode
36
The dual mode of operation provides protection for the operating system from _______ users.
errant
37
Privileged instructions can only be executed in _______ mode.
kernel
38
An attempt to execute a privileged instruction in user mode is treated as _______.
illegal
39
Examples of privileged instructions include _______.
* I/O control * Timer management * Interrupt management
40
Intel processors have _______ separate protection rings.
four
41
In Intel processors, ring 0 is _______ mode.
kernel
42
ARMv8 systems have _______ modes.
seven
43
The virtual machine manager (VMM) has more privileges than user processes but fewer than the _______.
kernel
44
The life cycle of instruction execution in a computer system starts with control residing in the _______.
operating system
45
System calls provide the means for a user program to ask the operating system to perform tasks reserved for the operating system on the user program’s behalf. True or False?
True
46
A system call is usually invoked in the form of a _______ to a specific location in the interrupt vector.
trap
47
When a system call is executed, it is typically treated by the hardware as a _______ interrupt.
software
48
The kernel examines the interrupting instruction to determine what _______ has occurred.
system call
49
If a user program fails by executing an illegal instruction, the hardware traps to the _______.
operating system
50
When a program error occurs, the operating system must terminate the program _______.
abnormally
51
An appropriate error message is given, and the memory of the program may be _______.
dumped
52
We must ensure that the operating system maintains control over the ___
CPU
53
We cannot allow a user program to get stuck in an infinite loop or to fail to call ___ and never return control to the operating system.
system services
54
To accomplish the goal of maintaining control, we can use a ___.
timer
55
A timer can be set to interrupt the computer after a specified ___.
period
56
The period of a timer may be fixed (for example, 1/60 second) or ___.
variable
57
A variable timer is generally implemented by a fixed-rate clock and a ___.
counter
58
The operating system sets the ___.
counter
59
Every time the clock ticks, the counter is ___.
decremented
60
When the counter reaches 0, an ___ occurs.
interrupt
61
A 10-bit counter with a 1-millisecond clock allows interrupts at intervals from 1 millisecond to ___ milliseconds.
1,024
62
Before turning over control to the user, the operating system ensures that the timer is set to ___.
interrupt
63
If the timer interrupts, control transfers automatically to the operating system, which may treat the interrupt as a ___ or may give the program more time.
fatal error
64
Instructions that modify the content of the timer are ___.
privileged