1.2.1 Systems Software Flashcards

1
Q

What is an Operating System?

A

a collection of programs that work together to supply a level of abstraction for the user to manage a computer.

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

What are the purposes of an OS?

A
#to manage processor  
#memory managment 
#device managment 
#platform for applications to run on 
#security (accepting or declining requests) 
#providing user interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is layering in terms of the OS

A

user -> application ->OS - > hardware

each layer doesnt concern about its neighbours but need data from them

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

Why is the OS needed?

A

As applications cannot allocate themself memory, processing time or secuirty.

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

Why do we require memory managment from the OS?

A

Since RAM is finite, so operating system will have to divide up and keep track of free space. Poor memory managment leads to fragmentation.

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

Methods of memory managment?

A

Paging

Segmentation

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

What does the OS rely on memory management to do ?

A

Split memory into blocks, which are allocated to processes.
Ensure security where processes dont cross data.
Extend memory if necessary using secondary memory

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

What is paging ?

A

When memory is split into equal size PAGES. It allows programs to run even if RAM is full by using virtual memory.

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

What are the drawbacks of paging ?

A

Some programs may not work if pages are split between RAM and secondary storage
Some memory can be wasted if a page isnt filled up.

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

What can paging be thought of ?

A

A person reading a book, so pages already read can be forgotten(freeing PAGES up) and the future are not needed yet(so theyre placed into virtual memory).

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

What is segmentation ?

A

A process that is similar to paging.However data is split into different size segments, which have an ID and a LENGTH, allowing modules to link in memory.

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

Which memory divisions are logical ?

A

Segments

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

Which memory divisions are physical ?

A

Pages

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

Why does the OS use a scheduler ?

A

The order of jobs has to be decided at the most efficient timing by using CPU time.

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

Describe the scheduling process…

A
  1. CPU is broken into time slices (given by the clock generating interrupts at regular intervals).
  2. The interrupt tells OS to give control to the scheduler.
  3. Scheduler saves the state of current process into a process descriptor table.
  4. Scheduler decides which process will run next and allows the CPU to execute it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a scheduler ?

A

A program, instructions used by the OS on manipulating jobs and CPU

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

Why are schedulers used?

A
To maximise the amount of processes completed in the shortest time possible 
To make efficient use of the processor  
To minimise delay 
To work upon priorities 
To ensure all jobs get processed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is a process?

A

Instance of a computer that is being executed managed by a scheduler.

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

Descibe the scheduling queue.

A

A new processed opened by the user enters a ready queue waiting to be executed, when its turn is reached it enters a RUNNING PROCESS QUEUE. At this stage it can either be completed or be sent to the BLOCKED QUEUE due to an interupt. When interrupt is sorted it is put back into ready queue when it awaits further execution.

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

What happens in the PROCESS RUNNING QUEUE?

A

A processed with allocated CPU time is now being executed.They can only leave once finished unless it needs an I/O or there is an interrupt occurance.

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

What are the 5 priority types of the scheduler ?

A
FIRST COME FIRST SERVE 
SHORTEST JOB FIRST 
ROUND ROBIN 
SHORTEST REMAINING TIME 
MULTI LEVEL FEEDBACK QUEUES
22
Q

What is a first come first serve priority?

A

When jobs arriving in ready queue will be executed strictly in arrival order

23
Q

What is a shortest job first priority?

A

Scheduler creates an order based on execution length with shortest statement receiving priority.

24
Q

What is a round robin priority?

A

Each task is given a time slice and once the limit is over the processor moves onto the next task even if previous isnt finished

25
Q

What is a shortest remaining time priority?

A

Shortest tasks are given priority at all times even if the running process is almost finished

26
Q

What is a multi-level feedback queue ?

A

When a job arrives it is given a priority and allocated to a queue. Processor will complete queues starting with the one that has a higher priority. It is basiclly placing jobs in the background for later completion.

27
Q

What are interrupts ?

A

Computer’s way of diverting from sequential nature of completing instructions

28
Q

What is each interrupt associated with ?

A

An ISR ( interrupt service routine)

29
Q

What is an ISR ?

A

a set of instructions to be carried out when an interrupt occurs.

30
Q

When is the blocked/interrupt queue checked ?

A

After each instruction is executed.

31
Q

What kind of conditions generate interrupts ?

A
INPUT OUTPUT devices needing attention 
power/system failures 
user interrupt(alt+del+ctrl) 
software wanting attention 
hardwate failures  
run-time errors 
timer interrupt generated by the internal clock
32
Q

What are the four types of interrupts?

A

I/O interrupts
Timer interrupts
Hardware interrupts
Program interrupts

33
Q

What is an I/O interrupt ?

A

Those occur while there is a data transfer between a peripheral(e.g. removing memory stick)

34
Q

What is a timer interrupt?

A

Critical data that takes priority e.g. netflix

The sound and image would otherwise be out of sync

35
Q

What is a hardware interrupt ?

A

Problems with hardware making CPU store data and OS shut down safely

36
Q

What is a program interrupt ?

A

Produced by the computer software telling CPU about an error.

37
Q

When does the CPU check for interrupts?

A

After each FDE cycle and then runs ISR on it.

38
Q

How are interrupts sorted ?

A

By priority

39
Q

What are interruts allocated and why ?

A

A priority number just in case a higher priority interrupt enters the ready queue

40
Q

What happens in PC as an interrupt is taken care of ?

A

The next instruction address is copied to a memory area called a stack and the PC now has the ISR address.

41
Q

What is a single user OS?

A

Allows one user to access a particular computer at only one time

42
Q

What is a multi-user OS?

A

Allows users to share data at the same time through a network controlled server ( requires a NOS) e.g.UNIX

43
Q

What is a multi-tasking OS?

A

Allows machine to perform several programs/jobs at the same time

44
Q

What is a real time OS?

A

A specialised OS designed to allow input processing under strict time limits. e.g.autopilots or chemical reaction control

45
Q

What is an embedded OS?

A

An OS put within the device hardware made for a specific function

46
Q

What is a distributed OS?

A

When the OS is split into nodes that communicate with each other using network technology

47
Q

What is a batch OS?

A

OS that isnt direclty interacting with the user, it requiers user made input

48
Q

What is BIOS a part of?

A

a part of the ROM that stores critical programs.

49
Q

What does the BIOS do?

A

It will check the operation of computer and load the OS into RAM(this is called the booting process).

50
Q

What OS bit is loaded into the memory?

A

A kernel - a part that is protected and cannot be overwritten.

51
Q

What is a device driver?

A

program that provides an interface for OS to communcate witha device.Drivers are hardware dependant and OS specific.