Chp 1 - Introduction Flashcards

1
Q

What is an OS?

A

An OS is a program that acts as an intermediary between a user of a computer and the computer hardware

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

What is the goal of an OS?

A

Execute user programs, make the comp. system easy to use, utilize hardware efficiently

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

Name the components of a computer system

A

Hardware ↔ OS ↔ Applications ↔ Users (↔ = ‘uses’)

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

What are the OS’s main responsibilities?

A

◦ Resource allocator: decides between conflicting requests for efficient and fair resource use
◦ Control program: controls execution of programs to prevent errors and improper use of computer

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

What is the bootstrap program?

A

loaded at power-up or reboot

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

Where is the bootstrap program stored?

A

Stored in ROM or EPROM (known as firmware), Initializes all aspects of system, loads OS kernel and starts execution

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

Can I/O and CPU execute concurrently?

A

yes

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

What do Device Controllers do?

A

Device controllers inform CPU that it is finished w/ operation by causing an interrupt

Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines

Incoming interrupts are disabled while another interrupt is being processed

Trap is a software generated interrupt caused by error or user request

OS determines which type of interrupt has occurred by polling or the vectored interrupt system

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

What is a system call?

A

request to the operating system to allow user to wait for I/O completion

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

Device-status table

A

contains entry for each I/O device indicating its type, address, and state
◦ OS indexes into the I/O device table to determine device status and to modify the table entry to include
interrupt

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

Describe storage structure

A

Main memory – random access, volatile

Secondary storage – extension of main memory That provides large non-volatile storage

Disk – divided into tracks which are subdivided into sectors. Disk controller determines logical interaction
between the device and the computer.

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

what is caching?

A

copying information into faster storage system

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

Describe multiprocessor systems

A

Increased throughput, economy of
scale, increased reliability

Can be asymmetric or symmetric

Clustered systems – Linked multiprocessor systems

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

What does multiprogramming do?

A

Provides efficiency via job scheduling

When OS has to wait (ex: for I/O), switches to another job

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

what is timesharing?

A

– CPU switches jobs so frequently that each user

can interact with each job while it is running (interactive computing)

17
Q

What is a dual-mode os?

A

operation allows OS to protect itself and other system components – User mode and kernel mode
◦ Some instructions are only executable in kernel mode, these are privileged

18
Q

How may program counters does a single and multi-threaded process have?

A

• Single-threaded processes have one program counter, multi-threaded processes have one PC per thread

19
Q

What is process protection?

A

mechanism for controlling access of processes or users to resources defined by the OS