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
Q

A common method for ensuring reasonable response time in a multitasking system is _______ memory.

A

virtual

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

The main advantage of virtual memory is that it enables users to run programs that are larger than actual _______ memory.

27
Q

Multiprogramming and multitasking systems must also provide a _______ system.

28
Q

To ensure orderly execution, the system must also provide mechanisms for process _______ and communication.

A

synchronization

29
Q

The system may ensure that processes do not get stuck in a _______.

30
Q

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?

31
Q

What are the two separate modes of operation in an operating system?

A

User mode and kernel mode

32
Q

The bit that indicates the current mode of operation in a computer system is called the _______.

33
Q

In kernel mode, the mode bit is set to _______.

34
Q

In user mode, the mode bit is set to _______.

35
Q

When a user application requests a service from the operating system, the system must transition from _______ to _______ mode.

A

user mode to kernel mode

36
Q

The dual mode of operation provides protection for the operating system from _______ users.

37
Q

Privileged instructions can only be executed in _______ mode.

38
Q

An attempt to execute a privileged instruction in user mode is treated as _______.

39
Q

Examples of privileged instructions include _______.

A
  • I/O control
  • Timer management
  • Interrupt management
40
Q

Intel processors have _______ separate protection rings.

41
Q

In Intel processors, ring 0 is _______ mode.

42
Q

ARMv8 systems have _______ modes.

43
Q

The virtual machine manager (VMM) has more privileges than user processes but fewer than the _______.

44
Q

The life cycle of instruction execution in a computer system starts with control residing in the _______.

A

operating system

45
Q

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?

46
Q

A system call is usually invoked in the form of a _______ to a specific location in the interrupt vector.

47
Q

When a system call is executed, it is typically treated by the hardware as a _______ interrupt.

48
Q

The kernel examines the interrupting instruction to determine what _______ has occurred.

A

system call

49
Q

If a user program fails by executing an illegal instruction, the hardware traps to the _______.

A

operating system

50
Q

When a program error occurs, the operating system must terminate the program _______.

A

abnormally

51
Q

An appropriate error message is given, and the memory of the program may be _______.

52
Q

We must ensure that the operating system maintains control over the ___

53
Q

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.

A

system services

54
Q

To accomplish the goal of maintaining control, we can use a ___.

55
Q

A timer can be set to interrupt the computer after a specified ___.

56
Q

The period of a timer may be fixed (for example, 1/60 second) or ___.

57
Q

A variable timer is generally implemented by a fixed-rate clock and a ___.

58
Q

The operating system sets the ___.

59
Q

Every time the clock ticks, the counter is ___.

A

decremented

60
Q

When the counter reaches 0, an ___ occurs.

61
Q

A 10-bit counter with a 1-millisecond clock allows interrupts at intervals from 1 millisecond to ___ milliseconds.

62
Q

Before turning over control to the user, the operating system ensures that the timer is set to ___.

63
Q

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.

A

fatal error

64
Q

Instructions that modify the content of the timer are ___.

A

privileged