Chapter 2 Flashcards

1
Q

Services of OS

A

User interface
Program execution
I/O Operation
file sytem manipulation
communications
error detection
ressource allocation
accounting
protection and security

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

Three types of user interface:

A

CLI
GUI
Touchscreen

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

What are system calls

A

System calls provide the interface between the operating system and a program in execution. Using system calls the operating system provides resources or actions for a running application.
user application -> system call interface -> system call

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

Methods of system call parameter passsing

A

Registers, stack, memory/table.

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

Types of system calls:

A

process control
file management
Device management
Information
communication etc
protection

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

Mechanisms vs policy:

A

Mechanisms determine how to do something, policies decide what will be done

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

Traditional UNIX system structure

A

Users -> shells/commands/compilers/sys libraries -> system call interface to the kernel -> kernel interface to the hardware.

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

Micro kernel

A

Communication takes place between user modules using message passing

Benefits:
Easier to extend a microkernel
Easier to port the operating system to new architectures
More reliable (less code is running in kernel mode)
More secure

Detriments:
Performance overhead of user space to kernel space communication

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

What is a Linker and a Loader?

A

A linker combines several relocatable object modules into a single binary
executable file. A loader loads the executable file into memory, where it
becomes eligible to run on an available CPU.

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

What is a monolithic OS?

A

A monolithic operating system has no structure; all functionality is provided in a single, static binary file that runs in a single address space.
Although such systems are difficult to modify, their primary benefit is
efficiency

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

Layered OS: advantages and disadvantage

A

Easy to debug
not ideal for designing operating systems
due to performance problems.

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