YEAR 1 CO1 WEEK 24 OS (MEMORY MANAGMENT) AND WEEK 25 (TYPES OF OS, SCHEDULING) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an operating system?

A

Core software controls how a computer operates.

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

What are the purpose of operating systems?

A
  • Provides a user interface
  • Managing hardware/peripherals
  • Memory management
  • Manages CPU/handles interrupts
  • Provides security
  • Provides a platform to run other systems/software
  • Provides utilities for system maintenance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the parts of the operating system?

A
  • The Kernel (heart of operating system)
  • Device drivers
  • The user interface
  • System utilities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the kernel?

A

Kernal in different operating systems may be responsible for slightly different blend of tasks.

Loading/unloading applications from memory.
Memory management.
File management.
Data security.

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

How does the kernel work?

A

Designed for operating system

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

What is a File Allocation Table (FAT) and what does it do?

A

A map of where your files are stored on a hard disk

  • Stores pointers/addresses to the start of files
  • Stores file names, file sizes and access rights
  • It allows the OS to identify free space in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is NTFS (New Technology File System)

A

New Tech File System which supports larger hard drives, file sizes and longer file names

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

What is a device driver ?

A

It’s a script / info that enables the operating system to control and interface with hardware

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

What is GUI

A

Graphical user interface is a friendly way for people to interact with computers

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

What is CLI

A

Command line interface
Simpler cause it’s text base

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

What are the types of scheduling

A

Round robin
First come first serve
Shortest job first
Shortest remaining time
Multi level feedback queue

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

What is round robin?

A

Gives an equal amount of time being processed
Probs it a time slot so if to much it get ignored until comes back round, don’t do priority
Advantages simple to implement

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

What is First come first serve

A

What ever one comes first is dealt with first
Disadvantage
Other jobs have to wait for the first to be done
No priority system

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

What is Short job first

A

Does the smallest first
Minimise the advantages
Long task could get left for ages

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

What is multilevel feedback queue

A

Takes Ito account priority and Priority’s can be adjusted
Very complicated
Not very efficient if jobs all same priority

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

What is Shortest remaining time

A

Quickest job left to complete finish first

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

Define A Logical Address

A

Addresses at which an item appears to reside, generated by CPU.

18
Q

Define Physical Addresses

A

Actual physical location of the storage cell in memory.

19
Q

What needs to happen for a executable application to be run.

A

To run a process it has to be loaded into main memory.
To run more than one process all have to be in main memory at the same time.
When executable application loaded into main memory it becomes a ‘process’ and requires memory to run.

20
Q

Describe Segmentation.

A

OS sets aside memory for process to use. This is called segmentation.
A way of portioning memory.
Variable Sized based on contents.
Are logical divisions which hold complete sections of programs.

21
Q

Define Paging.

A

Second type of memory management which designed to handle virtual memory.

22
Q

Define a Page.

A

A fixed sized physical division of memory. Each page is contiguous.

23
Q

Describe Pagination.

A

When RAM full memory manager determines least used page.
Page then copied into virtual memory.
Free area renumbered by memory manager and marked as free to use.
If page needed again swapped back into RAM.
ONLY USED WHEN VIRTUAL MEMORY IN USE.

24
Q

What is Disk Thrashing.

A

When Virtual Memory in heavy use.
As more pages are swapped eventually more time is being spent swapping pages than processing data.c

25
Q

Describe the MutiTasking OS.

A

allows more than one program to run at the same time (appear to).
Arranges for every process to have some CPU time, switching between processes.

26
Q

Describe the MultiUser OS.

A

Allows multiple users, on different workstations, to access a single powerful computer via a network.
Handles the needs of users by dividing up CPU time and assigning blocks to each user in time.

27
Q

Describe what happens in turn for a multiuser OS.

A

Each user logs onto system + presented with their workspace.
Allocates resources for jobs they want to run.
Keeps log of how much processing time and resources they use.
Works out most efficient use of computer processing cycles.
Maintains security + privacy between the different users.

28
Q

Describe the Distributed OS.

A

Controls a number of computers at the same time to undertake a single computer intensive task.
Each computer contains part of the overall OS.

29
Q

Describe the Real Time OS.

A

Designed to handle input data within a guaranteed response time (latency).
Specifically designed to be extremely reliable and to have precise and consistent timings.

30
Q

Describe the Embedded OS.

A

Computer hardware designed to handle a specific task on a specific system hardware.
Hardware resources usually limited due to size of object or functions it is required to perform.

31
Q

Describe the Batch OS.

A

Common on a mainframe computer specifically with massive repetitive data processing in mind.
Requires separate programs for input, process and output.

32
Q

What is the OS of a multitasking computer expected to do and how is it made possible?

A

The OS of a multitasking computer is expected to run many programs in memory without any noticeable delay.
Made possible by scheduling which is the task of allocating CPU processing time amongst all running programs.

33
Q

Describe Round Robin scheduling algorithm.

A

Each process given equal amount of time being processed.
Queue made holding all processes that are ready to be run. Each loaded into main memory in turn.
Each process given set amount of time to use.
If completed within time next process loaded immediately otherwise put back in queue to wait for another turn.

34
Q

State advantages and disadvantages of Round Robin.

A

Advantages:
Easy to implement
Disadvantages:
Not take account of priority.
Not take account that some processes much longer than others.

35
Q

Describe First Come First Server scheduling algorithm.

A

Lines up all processes ready to run in First In First Out queue.
Allows processes to run to completion.

36
Q

State advantages and disadvantages of First Come First Serve.

A

Advantages:
Simple algorithm to implement.
Disadvantages:
Not take into account of priority.
Not consider some processes longer than others.
Once job started prevents other jobs from being processed until its complete.

37
Q

Describe Shortest Job First Scheduling Algorithm.

A

Processes arranged in queue by how much time (FDE cycles) each process needs to run to completion.
If newer process comes along scheduler will work out processing time and slot in appropriate point in queue.
If shorter than current process running program interrupted and shorter one runs immediately.

38
Q

State advantages and disadvantages of Shortest Job First Algorithm.

A

Advantages:
Ensures short jobs aren’t kept waiting for long processes.
Minimises average time process takes to complete.
Disadvantages:
Not take into account priority.
Longer jobs that are nearly done still interrupted by shorter jobs.

39
Q

Describe Shortest Time Remaining Scheduling Algorithm.

A

For Shortest Job algorithm 1000 cycle job still be interrupted by 700 cycle as total length shorter than old one.

Fixed by ordering jobs by how much time they have remaining.
Jobs only interrupted if new process shorter than time remaining before completion.

40
Q

State advantages and disadvantages of Shortest Time Remaining Algorithm.

A

Advantages:
Allows short processes to be handled very quickly.
Disadvantages:
Not take into priority.
Long jobs may never be completed if short jobs keep jumping the queue.

41
Q

Describe Multi-Level Feedback Queues Scheduling Algorithms.

A

Maintains a number of queues with different priority levels.
Each job given priority by scheduler and then sorted into relevant queue.
High priority queue completed first then each of the lower queues in turn.

42
Q

State advantages and disadvantages of Multi-Level Feedback Queues.

A

Advantages:
Takes in account of priority.
Disadvantages:
Complex to implement.
Low priority may take extremely long time to complete.