OS + OS Design Flashcards

(11 cards)

1
Q

what is an os(what is their role)

A

Os: Manages hardware and system resources,
Shares out and accounts for resources,
Offers secure environment for applications,
Provides common device or I/O system

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

The Operating system

A
  • Includes kernel and system library interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Benefit of abstraction

A

The OS hides the complex hardware details and gives applications a simpler, cleaner interface to work with.
Hardware abstraction allows us to hide hardware
differences from Operating System– Operating System can then run on different hardware

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

The OS provides abstract environments like:

A

Files instead of raw disk blocks

Processes/Threads instead of CPU register juggling

Memory allocations instead of managing physical RAM

System calls instead of direct hardware instructions

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

different OS

A

Embedded/ Real-Time, emphasis on – Proven long term reliability and strict timing guarantees– Small footprint, no unnecessary code– Certification process for safety critical systems
* Server, emphasis on – Fairly sharing resources– Reliability
* Desktop, emphasis on
Could be same OS running
with different parameters– Interactivity– GUI and graphics/ media

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

different OS

A

embedded/real time - can be found in cars, planes,etc.
Server - Web servers, databases
Desktop - Personal laptops , PC’s

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

Design (OS) - Monolithic

A

Monolithic has a traditional approach (Tight coupling of non application code)
- All OS code running with full privileges
- Difficult to impose security or protection
- Efficient call structure(Shared access to resources)
- Difficult to maintain
(Code boundaries frequently blurred)

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

Layered Approach

A

Realisation that we have identifiable layers in
system
- High-level components built on lower ones
- Impose tighter security as move from hardware
-Performance penalty with every layer crossed
Hard to manage if complex inter-layer call chain
Applications
* Can’t call up layers (only down) so needs thought at design

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

Design OS(Micro kernel)

A

Minimal amount of code has ‘system’ privileges
* Most code in unprivileged ‘user space’
* Far more secure than other approaches
Components communicate by message passing
* Main function of kernel in this model is
Inter-Process Communication (IPC)
* Can be inefficient
* Most real implementations break model
- Extensible and have minimal system dependencies

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

Modular OS

A
  • Core kernel loads modules as needed
  • Core relatively small
  • More manageable, less scope for code problems
  • Kernel modules run with elevated privileges
  • Reliant on API and structure for kernel integrity
  • Modules can still break things if they don’t follow rules
  • Naturally restricted to module API
  • Can access and share resources across modules
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly