Chapter 1 - Intro to Operating Systems Flashcards

1
Q

What is an Operating System?

A

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 are the goals of the 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
3
Q

What does an Operating system do?

A
  • resource allocator: ensures multiple programs can run without conflicts and fairly allocate resources to them
  • Control Program: controls and manages the execution of user programs, preventing errors and improper use of the system.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Users of dedicated systems such as workstations have dedicated resources but frequently use ______ resources from servers

A

shared

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

Mobile devices like smartphones and tablets are ______, optimized for usability and battery life

A

resource poor

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

Some computers have ____ user interface, such as embedded computers in devices and automobiles

A

little or no

** run primarily without user intervention

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

What are the four components an operating system is divided?

A

user <-> application programs <-> operating system <-> computer hardware

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

What connects CPUs and device controllers in a computer system?

A

A common bus provides access to shared memory

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

How do CPUs and devices interact in a computer system?

A

They execute concurrently and compete for memory cycles

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

What is the role of a device controller?

A

Each device controller manages a specific device type

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

Where do device controllers store data temporarily?

A

Each device controller has a local buffer

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

How does the operating system manage device controllers?

A

Each device controller type has a device driver in the OS

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

How does the CPU transfer data btwn devices and memory?

A

The CPU moves data btwn main memory and local buffers of controllers

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

How does I/O transfer occur in a computer system?

A

I/O transfers data from the device to the local buffer of its controller

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

How does a device controller inform CPU that it has finished its operation?

A

By causing an interrupt

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

How is control transferred to the interrupt service routine?

A

Through the interrupt vector, which contains addresses of all service routines.

17
Q

What must the interrupt architecture save during an interrupt?

A

The address of the interrupted instruction

18
Q

What is a trap or exception?

A

A software-generated interrupt caused by an error or user request

19
Q

What drives an operating system’s execution?

A

An operating system is interrupt-driven