Quiz 1 - pt. 1 Flashcards

1
Q

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

OS goals:

A
  1. execute use programs and make solving user problems easier.
  2. make the computer system convenient to use.
  3. 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

Four components of a computer system:

A
  1. computer hardware
  2. operating system
  3. system and app programs
  4. users?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

user view VS system view

A

user view:

  • ease of use
  • doesn’t care of utilization

system view:

  • maximize utilization
  • protect system from malicious/non-malicious users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

kernel:

A
  • resource allocator
  • needs to work all the time
  • initial code loaded at boot
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

describe kernel mode:

A

kernel mode, as opposed to user mode, is where the system starts when it boots up. It’s where instructions are privileged, meaning they are only executable in kernel mode, and where the Operating System has unrestricted access.

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

byte:

A

8 bits

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

word:

A

depends on architecture:

4-bit words, 8-bit, 16-bit, 32-bit, etc.

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

nibble:

A

4-bits

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

Kilobyte (KB):

A

1024 bytes

2^10 bytes

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

Megabyte(MB):

A

2^20 bytes

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

Gigabyte(GB):

A

2^30 bytes

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

Terabyte(TB):

A

2^40 bytes

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

Petabyte(PB):

A

2^50 bytes

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

Exabyte :

A

2^60 bytes

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

Zettabyte :

A

2^70 bytes

17
Q

bootstrap program:

A

loaded at power-up or reboot:

  • typically stored in ROM or EPROM, generally known as firmware
  • initializes all aspects of system
  • loads OS kernel and starts execution
18
Q

Computer-system organization:

A

computer-system operation:

  • one or more CPUs, device controllers connect through common bus providing access to shared memory
  • concurrent execution of CPUs and devices competing for memory cycles
19
Q

Device controller informs CPU that it has finished its operation by causing a(n):

A

interrupt!

20
Q

The typical computer system organization has shared memory, device controllers, and one/more CPUs connected through a common communication channel called a(n):

A

bus!

21
Q

The disk controller notices the CPU that it has fetched the data by issuing a(n):

A

interrupt!

22
Q

interrupt:

A

transfers control to the interrupt service routing generally, through the , which contains the addresses of all the service routines

23
Q

interrupt architecture must save:

A

the address of the interrupted instruction

24
Q

incoming interrupts are disabled while another interrupt is being processed to prevent:

A

a lost interrupt!

25
Q

trap:

A

a software-generated interrupt caused either by an error or a user request

26
Q

An operating system is ____ driven.

A

interrupt driven!

27
Q

Describe DMA:

A

Direct Memory Access:
- when a device transfers a block of data to/from its own buffer to memory without the help of the CPU

(used for high-speed I/O devices to transmit info at close to memory speeds)

28
Q

caching:

A

information in use copied from slower to faster storage temporarily.

29
Q

cache size and replacement policy:

A

when cache is full, an algorithm must choose which items to discard to make room for new ones.

30
Q

swapping:

A

if processes don’t fit in memory, swapping moves them in and out to run.

(part of Timesharing (multitasking) concept)