Introduction Flashcards

1
Q

What is an OS?

A

Most fundamental software that runs in kernel mode.

Runs on bare hardware and provides base for all other software.

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

What are the functions of an OS?

A

1) Providing application programmers a clean abstract set of resources instead of the messy hardware ones
2) Managing these hardware resources

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

What language are operating systems usually written in?

A

C

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

Kernel Mode

A

AKA supervisor mode. Complete access to all hardware, can execute any instruction machine is capable of

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

What are the two modes of operation of [most] computers?

A

User mode and kernel (or supervisor) mode

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

What is the program users interact with called?

A

Either

a) the shell: if text-based
b) GUI (graphical user interface): if icon-based

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

What is the lowest level of user-mode software?

A

UI program, shell or GUI

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

Are GUI and shell part of the OS?

A

No, but they use OS to get work done

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

What can user mode access?

A

User programs run in user mode, with only a subset of all instructions/features able to be executed

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

What is disallowed in user mode?

A

All instructions involving I/O and memory protection

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

How can user programs use services from the OS?

A

They must make a system call, which traps into kernel to invoke the OS. TRAP instruction switches from user to kernel mode and starts OS. Once complete, control is returned to user program at the instruction following the system call.

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

What are the two types of multiplexing? Which is more efficient?

A

1) Time: Programs take turns to use the CPU
2) Space: Programs share the resource
Space is more efficient, as multiple programs are held in memory at once, many of which will likely only take up a fraction of the resources

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

Does the OS know about registers?

A

An OS must know about all registers.

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

What happens to registers when OS stops running a program?

A

These registers must be saved and stored for later

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