Chapter 1: Introduction Flashcards

1
Q

What is an operating system?

A

A program that manages a computer’s hardware. It also provides a basis for application programs and acts as an intermediary between the computer hardware.

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

Caching

A

copying information into faster storage system. main memory can be viewed as a last cache for secondary storage.

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

What is dual mode?

A

operation allows operating system to protect itself and other system components.

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

What is a trap?

A

generated interrupt caused either by an error or a user request. stops normal execution.

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

What is the kernel?

A

“The one program running at all times on the computer”

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

Goals of Operating System

A

Execute user programs and make solving user problems easier.
Make the computer system convenient to use
Use the computer hardware in an efficient manner

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

Resource allocator

A

manages and allocates resources

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

Control program

A

controls the execution of user programs and operations of I/O devices

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

Process

A

An executing program

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

Resource

A

Anything that is needed for a process to run:
Memory
Space on a disk
The CPU

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

Storage systems organized in hierarchy

A

Speed
Cost
Volatility

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

volatile storage

A

loses its

contents when the power to the device is removed

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

Solid-state disks

A

have several variants but in general are faster than

magnetic disks and are nonvolatile

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

What are two tasks that an operating system is responsible for from the perspective of the computer?

A

Manages resource allocation, execution of program and hardware.

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

From the perspective of the computer, what is the purpose of the operating system?

A

resource management and controlling programs.

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

What are methods of parameter passing that are used in an invocation of a system call?

A

table
registers
stack

17
Q

Space-multiplexed

A

sharing is the division of a resource into two or more distinct units and then the allocation of the individual units to processes.

18
Q

Time-multiplexed

A

sharing is when one process can use the entire resource for a period of time and then another process uses it at a later time.

19
Q

Timesharing (multitasking)

A

is logical extension in which CPU switches jobs so frequently that users can interact with each job while it is running, creating interactive computing
Response time should be < 1 second
Each user has at least one program executing in memory process
If several jobs ready to run at the same time  CPU scheduling
If processes don’t fit in memory, swapping moves them in and out to run
Virtual memory allows execution of processes not completely in memory

20
Q

What are the two types of isolated sharing that is practiced by the operating system when multi-programming is in use? Provide an example of each type.

A

Time-multiplex: library book

space-multiplex: parking lot

21
Q

What does it mean to say that the operating system is in dual mode and what is the purpose of dual mode?

A

operation allows operating system to protect itself and other system components. Uses user mode and kernel mode. Also uses interrupts and traps.

22
Q

How does the operating system protect itself from erroneous application program behavior?

A

Dual mode operation protects it.

23
Q

What is the purpose of a cache? Where is it usually in the memory hierarchy?

A

copying information into faster storage system; main memory can be viewed as a last cache for secondary storage.
Below registry and above main memory.

24
Q

Main memory

A

is usually too small to store all needed programs and data permanently. a volatile storage device that loses its contents when power is turned off or otherwise lost.

25
Q

Bootstrap program

A

is loaded at power-up or reboot
Typically stored in ROM or EEPROM, generally known as firmware
Initializes all aspects of system
Loads operating system kernel and starts execution

26
Q

What is the difference between a program and a process?

A

A process is the way the program itself is executed.