Week 5: Introduction to Operating Systems Flashcards

1
Q

Name the disadvantages of Serial Processing?

A

Scheduling means time is wasted and it takes a long time to set up.

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

Describe the role of the monitor in Simple Batch Systems?

A

Controls sequence of events and gives control to jobs.

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

Describe Simple Batch Systems?

A

No longer direct access to processor.
Processor fetches and executes from either monitor or job.
This means main memory and processor time must be given to the monitor.
This improves utilization, however.

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

Compare Uniprogramming and Multi-Processing?

A

Uniprogramming: Program waits for I/O.
Multi-Processing: Processor switches to another job while one job waits for I/O.
Needs enough memory for OS (resident monitor) and one user program.

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

What is the principle objective and source of directives (to OS) of Batch Multiprogramming?

A

Principle Objective: Maximize processor use.

Source of directives: Job control language commands (provided with the job).

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

What is the Principle Objective and Source of Directives (to OS) of Time Sharing Systems?

A

Handle multiple interactive jobs, processor time shared among multiple users.
Principle Objective: Minimize response time.
Source of Directives: Commands entered at terminal.

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

What is the role of the Operating System?

A

Manage the set of resources for movement, storage and processing of data.

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

What are some of the services an Operating System provides?

A

Program development and execution.
Controlled access to I/O devices, files and system.
Error detection and response.
Accounting.

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

What happens upon start-up of an Operating System?

A

Bootstrap.
Firmware initializes CPU registers, device controllers and memory contents.
Kernel is loaded into memory.

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

What is a system daemon?

A

A service provided outside the kernel.

Loads at boot time and runs entire time the kernel is running.

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

What occurs during an interrupt?

A

CPU transfers execution to fixed location (starting address of service routine).

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

State the difference between hardware and software interrupts?

A

Hardware: Sends interrupt signal to CPU at any time.
Software: Sends interrupt signal when executing special operation (system call).

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

How does multi-tasking work in the operating system?

A

Several jobs kept simultaneously in memory.

CPU Scheduler decides which job to bring into memory from disk to be executed (virtual memory used).

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

What is the User Mode in an Operating System?

A

Contains user programs.

Certain memory/instructuions protected/not executed.

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

What is the Kernel Mode in the Operating System?

A

Contains monitor.
All memory/privileged instructions accessed.
Hardware detects violatiom of modes.

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

How are programs executed, in terms of storage, in the Operating System?

A

An instruction is fetched and stored in the instruction register.
This is decoded, causing further operands to be fetched and stored in other registers.
The memory unit only sees streams of addresses.

16
Q

What is a Device Controller?

A

Devices connect to these, which connect to the CPU via a common bus.
Moves data between peripheral devices it controls and local buffer storage.
Have a local buffer storage as well as special purpose registers.

17
Q

What is a Device Driver?

A

Stored in kernel.
Understands device controller.
Provides OS with a uniform interface to device (same no matter the device).

18
Q

What is the Programmed I/O mechanism?

A

Processor polls controller status.
When I/O is finished, data is transferred between I/O modules, processor and main memory.
Processor has special instructions to control I/O device, test status and transfer data.
Disadvantage: Processor is busy.

19
Q

What is the disadvantage of Interrupt Driven I/O?

A

Not suitable for bulk data, disk I/O for example.

20
Q

What is Direct Memory Access?

A

Transfers data directly from I/O device, to controller buffer, to main memory.
No intervention from the CPU.
Advantage: CPU is free, with only a single interrupt needed.
Disadvantage: DMA controller and processor share the bus connecting different hardware components, resulting in slowdown.

21
Q

Describe Multiprocessor Systems?

A

Share bus, clock, memory and peripherals.
Parallel.
Increased throughput and reliability (graceful degradation).
Economy of scale.

22
Q

What is the processor relationship in Asymmetric Multiprocessor Systems?

A

Boss-worker.

Each processor is assigned a specific task.

23
Q

What is the processor relationship in Symmetric Multiprocessor Systems?

A

Peer to peer.

Each processor utilized and has equal chances of being used.

24
Q

What are the advantages of Multicore Systems?

A

Faster on chip communication.

Less power.

25
Q

Described Clustered Systems?

A
Loosely coupled.
Share storage.
(A)symmetric.
Allows for high performance computing and parallelization of applications.
High availability.
26
Q

Described the MS-DOS (Simple) structure for OS design?

A

Provides most functionality in the least space.

No modules, not well separated functionality = dangerous.

27
Q

Described the UNIX (non simple) structure for OS design?

A

Two separable parts - system programs and kernel.
Kernel consusters of everything below system-call interface and above hardware (file system, scheduling etc.)
Disadvantage: Large number of functions for one level.

28
Q

Describe the Layered Approach (theoretical) structure for OS design?

A

Layer 0 = hardware
Layer N = UI
Each layer uses functions from lower layers.

29
Q

Describe the Microkernel structure of OS design?

A

Moves as much from kernel to user space
Communication between user modules by message passing.
Advantages: Easy to extend/port to new architectures, reliable (smaller kernel mode), secure.
Disadvantage: Overhead

30
Q

Describe Modules structure of OS design?

A

Loadable kernel modules.
OOP approach.
Modules communicate through known interfaces.