Chapter 2 (Operating System Overview) Flashcards

1
Q

What are the three main OS objectives?

A

Convenience
Efficiency
Ability to evolve

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

What does it mean for an OS to have the ability to evolve?

A

Adapt to new features, changes, and updates

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

What does the OS provide?

A

Interface

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

T/F The OS acts to insulate the user or programmer from hardware details, making it easier to access and use the system

A

T

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

What are some services the OS may provide?

A
Program development
Program execution
I/O device access
File access
System access
Error detection
Accounting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is ISA?

A

Instruction Set Architecture

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

What does the instruction set architecture do?

A

Defines the set of machine language instructions that a computer can follow

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

What is ABI?

A

Application Binary Interface

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

What does the application binary interface do?

A

Defines a standard for binary portability across programs

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

What is API?

A

Application Programming Interface

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

What does the application programming interface do?

A

Gives a program access to the hardware resources and services available in a system through the user ISA supplemented with high-level language library calls

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

How can a computer be viewed?

A

As a set of resources

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

What if applications had ownership of system resources?

A

Sharing resources would be difficult

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

T/F It is better to let the OS own the resources, so the OS decides which programs get which resources

A

T

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

What are the problems with users and applications interacting directly with the hardware?

A

Scheduling

Setup time

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

Users had access to the system one at a time, this could be called….

A

Serial processing

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

Machine utilization was also important because

A

Machines were expensive

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

What is a resident monitor?

A

A monitor program that resides in memory

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

How does a monitor increase efficiency?

A

Scheduling each job in turn automatically, and by reducing setup time through a JCL

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

What is JCL?

A

Job Control Language

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

What does a JCL do?

A

Specifies setup steps for the monitor

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

What are desirable hardware features to support a batch OS?

A

Memory protection

Timer

Privileged Instructions

Interrupts

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

What is memory protection hardware feature in a batch operating system?

A

Prevents the monitor from being overwritten

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

What is a time hardware feature in a batch operating system?

A

Prevents a job from monopolizing the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is privileged instructions hardware feature in a batch operating system?
Only the monitor can do certain things
26
What is interrupts hardware feature in a batch operating system?
Provides better way to handle transfer of control from the monitor to user programs
27
What two modes of operation does a processor normally support?
User mode Kernel mode
28
What is user mode for a processor?
For user programs
29
What is kernel mode for a processor?
For the OS
30
T/F The user mode for a processor has no limitations
F, it does
31
T/F Some main memory and some CPU time is given to the monitor
T
32
What is uniprogramming?
Running one program at a time
33
T/F Multiprogramming is an extension of uniprogramming
T
34
T/F Batch systems run programs in the “background” and generally don’t have direct user interaction
T
35
Define a process
A program in execution
36
Processor is kept busy by switching between programs in response to events such as I/O activity
Multiprogrammed batch systems
37
Processor time is shared among a number of active users by giving each user a slice of time
Time-sharing systems
38
Supports applications written to perform a query or update against a database by a user, such as an airline reservation system
Real-time transaction systems
39
What are some problems with running multiple programs at the same time?
Improper synchronization Failed mutual exclusion Nondeterminate program operation Deadlocks
40
What is Improper synchronization?
Need a reliable way for one program to wait on another
41
What is Failed mutual exclusion?
Need to prevent multiple programs from accessing a resource such as a file at the same time
42
What is Nondeterminate program operation?
Need program results to be independent of other programs running at the same time
43
What are deadlocks?
Need to avoid situations in which programs are waiting on each other
44
What parts does a process have?
Executable program The data the program is using Execution context
45
What is the execution context of a process?
Includes the information required by the OS to control the process
46
What are the requirements for multiple processes in memory?
Isolation Automatic allocation and management Support for modular programming Protection and access control Long-term storage
47
What is isolation in memory management?
Keep process from accessing or overwriting the memory of another
48
What is automatic allocation and management in memory management?
Programmer should not worry about memory mgmt
49
What is support for modular programming in memory management?
Create, destroy, alter size of modules dynamically
50
What is protection and access control in memory management?
Restrict or grant access as needed
51
What is long-term storage in memory management?
Persist after computer is off
52
What is virtual memory?
Allows a program to have a logical view of memory
53
T/F Virtual memory gives the program a view of memory that may be much larger than physical memory
T
54
A ____ swaps pieces of programs, called pages, that are the same size. This makes it easy to replace one piece with another
Paging system
55
What does a virtual memory address consist of?
Page number Offset
56
What does the paging system do?
Maps the logical page to the physical page
57
T/F Pages are swapped from disk to main memory as the program runs
T
58
Protecting the system against interruption
Availability
59
Protecting against unauthorized access to data
Confidentiality
60
Protecting against unauthorized modification
Data integrity
61
Protecting against false identities
Authenticity
62
What are three factors to consider in scheduling?
Fairness Differential responsiveness Efficiency
63
What is fairness in scheduling?
Processes should get equal treatment (if same class and priority)
64
What is Differential responsiveness in scheduling?
may need to discriminate among different classes of jobs with different needs
65
What is Efficiency in scheduling?
maximize throughput and minimize response time
66
How may scheduling be implemented?
Queues of processes
67
A “____” queue contains processes currently in main memory
Short-term
68
A “____” queue contains processes waiting to run
Long-term
69
What are five categories of modern OS design?
Microkernel architecture Multithreading Symmetric multiprocessing Distributed operating systems Object-oriented design
70
T/F The kernel contains the most frequently used functions
T
71
What is monolithic kernel architecture?
All one piece
72
What is a microkernel architecture?
Assigns only a few essential functions to the kernel
73
What is a thread?
A dispatchable unit of work
74
T/F A process may have multiple threads of execution, where each thread belongs to the process and shares its resources, but executes independently and concurrently with other threads of the process
T
75
T/F Multithreading is more efficient than creating sperate processes
T
76
What is one way to manage several processors?
SMP
77
What characteristics do SMP systems have?
Multiple processors These processors share the same main memory and I/O facilities All processors can perform the same functions
78
T/F An SMP OS can schedule threads on any available processor in the system
T
79
What are the SMP Advantages Versus Uniprocessor
Performance Availability Incremental growth Scaling
80
Multiple machines may be managed together with a distributed operating system
Distributed OS
81
T/F A distributed OS lags behind uniprocessor and SMP systems
T
82
Can object-oriented design techniques be applied to the operating system
Yes
83
What is MTTF?
Mean time to failure
84
What is MTTR?
Mean time to repair
85
How is availability calculated?
MTTF / (MTTF + MTTR)
86
Spatial redundancy
Multiple components
87
Temporal redundancy
Repeating an operation after an error occurs
88
Information redundancy
Use of error correction or detection techniques
89
Helps to prevent a fault in one application from affecting another
Process isolation
90
Helps ensure correct operation and detection of problems such as deadlock
Concurrency controls
91
Provides a greater degree of isolation as well as redundancy
Virtual machines
92
Save state so that recovery is possible in the event an error occurs
Checkpoints and rollbacks