Week 1 Flashcards

1
Q

What is an operating system?

A

An operating system is software that:
- Provides a basis for application programs
- Acts as an intermediary between the user and the hardware
(1)

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

What are the three main responsibilities of an operating system?

A
  • Memory management
  • Storage, I/O, file management
  • Process management
    (Week 1 lecture 1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four components of a computer system?

A
  1. Hardware
  2. Operating system
  3. Application programs
  4. User
    (1.1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the role of hardware in a computer system?

A

Hardware provides basic computing resources for the system
(1.1)

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

What is the role of application programs in a computer system?

A

Application programs define ways that resources are used to solve users’ computing problems
(1.1)

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

What is the role of an operating system in a computer system?

A

An operating system controls hardware and coordinates its use among the various application programs for users
(1.1)

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

What three “elements” form a computer system?

A
  1. Hardware
  2. Software
  3. Data
    (1.1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or False?
An operating system is useless by itself.

A

True
An operating system provides an environment where other programs can do useful work. (1.1)

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

What is the goal of an operating system for a user?

A

An operating system provides ease of use, with some performance and security. Resource utilization is not a point of focus for the user. (1.1.1)

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

Where does the operating system sit in an abstraction of a computer system?

A

User
Application programs
Operating system
Hardware
(1.1.1)

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

What is the goal of an operating system for the system?

A

From the computer’s point of view, the operating system is most involved with the hardware. The operating system manages resources and how to best allocate them to programs and users to maximize efficiency. (1.1.2)

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

What is a control program?

A

A control program manages the execution of user programs to prevent errors and improper use of the computer, especially with the operation of I/O devices. (1.1.2)

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

True or false?
A control program is an example of an operating system.

A

False
An operating system is a control program. (1.1.2)

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

What is Moore’s Law?

A

Proposed in the 1960’s, Moore’s Law predicted that the number of transistors on an integrated circuit would double every 18 months. (1.1.3)

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

What is the fundamental goal of computer systems?

A

Computer systems execute programs and make solving user problems easier. (1.1.3)

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

What is a kernel?

A

A kernel is another name for operating system, and is one program what is running at all times on the computer. (1.1.3)

17
Q

What is a system program?

A

System programs are associated with the operating system but are not part of the kernel (1.1.3)

18
Q

What is an application program?

A

An application program is any program that is not associated with the operation of the system (1.1.3)

19
Q

What is middleware?

A

Middleware is a set of software frameworks that provide additional services to application developers (1.1.3)

20
Q

What is a device driver?

A

A device driver understands the device controller and provides the rest of the operating system with a uniform interface to the device (1.2)

21
Q

True or false?
The CPU and device controllers can execute in parallel.

A

True
A memory controller synchronizes access to the memory.

22
Q

What are interrupts?

A

An interrupt is an event that is triggered at any time by sending a signal to the CPU via a system bus

23
Q

What functions are common in an interrupt?

A

The interrupt must:
- Transfer control to the appropriate interrupt service routine
- Invoke a generic routine to examine the interrupt information
- Call the interrupt-specific handler

24
Q

What kind of storage is used to store pointers to interrupt routines?

A

A table of pointers to the memory addresses of the interrupt routines is used.
This table is commonly stored in low memory (towards the beginning of the memory)

25
Q

What is used to index the table of pointers to provide the address of the interrupt service routine for the interrupting device?

A

An interrupt vector is used.

26
Q

True or false?
The state of the system before the interruption does not need to be saved.

A

False
The interrupt architecture must save the state information of whatever was interrupted, so that it can restore this information after servicing the interrupt.
If the interrupt routine needs to modify the processor state, it must save the current state and then restore that state before returning.

27
Q
A