Operating Systems Flashcards

1
Q

What is an operating system?

A
  • Software on comp that manages its day to day use

- Deals with security, provides a GUI, manages the hard and the software of the system

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

What is a multi-tasking OS?

A
  • Allows multiple programs running simultaneously
  • CPU’s can deal with more programs than they have cores
  • CPU is much faster than peripherals so it creates illusion that multiple programs are running at once when in fact one instruction is executed at a time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a multi user OS?

A
  • More than one user can access computers resources at the same time
  • Common on mainframe comps where multiple users will need to use it at same time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a distributed OS?

A
  • Controls multiple comps, presenting them to user as 1 system
  • Used to tackle difficult tasks were more power is needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an Embedded OS?

A
  • Only has one job and won’t need multitasking
  • Designed for a specific device and will run efficiently on low CPU’s with little RAM
  • eg: ATM or TV
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a real time OS?

A
  • Used to carry out actions in real time
  • eg: Hospital equipment such as heart rate monitors will alert the staff as soon as sudden changes occur
  • Auto pilot, traffic lights
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a special feature of these OS’s

A

OS’s can have more than one of these properties. Most real time OS’s are also embedded

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

What is the Kernel and what is its function?

A
  • Core of an OS
  • Manages the system, memory management and scheduling
  • Allows apps to send and receive data from devices
  • Lies below UI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the memory manager allow?

A
  • Programs to run simultaneously, programs to share memory to run at the same time
  • Programs to share data if they have a valid reason
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the memory manager disallow?

A
  • Programs to collide and overwrite one another
  • Restricts Programs from accessing and amending there own area of data
  • Malicious software from attacking the data of another program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What two processes allow programs to split up across the memory if there is not room for the whole program?

A
Paging = Division of data into blocks of the same physical size. Each block is a page. OS uses page table to keep track of Where the pages are stored meaning all the pages of a process don't have to be stored together. More precise but not as efficient, used for smaller files and smaller sections of memory. Data would be good for paging. Page files usually 4kb
Segmentation = Logical division of data into blocks containing routines or modules. Programs would be good for segmentation as they need to be logically divided into segments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is virtual memory and why is it used?

A
  • System takes area of hard drive and treats it as RAM
  • OS identifies a page(s) in the RAM that are unlikely to be needed in the future and moves them to virtual memory. When needed they are moved back to physical memory
  • Used when the RAM is low, it free ups space by moving pages or segments that are not likely to be used in the near future into the virtual memory
  • RAM is expensive so instead of buying more this method is used
  • Slower than actual RAM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is disc thrashing

A
  • If RAM is full the OS can move pages back and fourth between RAM and VM often.
  • Slows down system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a schedular?

A
  • Program that managers the time different processes have in the CPU
  • They use algorithms to decide this
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the advantage of scheduling?

A
  • Allows multiple process to be ran at the same time

- Algorithms ensure that all processes get seen

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

What type of OS’s uses schedulers

A

Multi-user and multi-tasking

17
Q

What is the Round robin algorithm?

A
  • Each process given set amount of time

- If process not completed it goes to the back of the que and waits for its turn again

18
Q

What is the First come first served algorithm?

A
  • 1st process is dealt with start to finish

- other processes que up and wait their turn

19
Q

What is the Shortest job first Algorithm?

A
  • Picks shortest job to deal with first and deals with it start to finish
  • Needs to know time before hand
20
Q

What is the shortest remaining time algorithm?

A
  • Estimates how long each will take then picks shortest one

- If new job is added with shortest time it then chooses that one

21
Q

What is polling? -?

A
  • CPU checks each peripheral to see if it needs attention
  • Waste of time
  • like a teacher coming round classroom asking each student if they need help
22
Q

What is an interrupt?

A
  • Device sends a signal to the processor to get its attention
  • Similar to when a kid puts a hand up in class to get attention
  • Has a priority in dictating how urgently it requires attention
  • When an interrupt is raised it runs the correct ISR
23
Q

What is an Interrupt service routine (ISR) and what are the steps involved?

A

Determines what happens when a particular interrupt is carried out

  1. At end of each fetch-decode-execute cycle the CPU checks to see if there are any interrupts. If they are and they are of a higher priority of the current task;
  2. The contents of the program counter and the other registers are copied at the stack
  3. The relevant ISR is loaded by changing to program counter to the value where the ISR starts in the memory
  4. When complete the previous values of the programs counter and the other registers can be restored from memory to CPU
24
Q

Problems with ISR’s?

A
  • It is possible that the interrupt could itself be interrupted by a higher priority interrupt.
  • When this happens the current interrupt is copied to the stack and the new interrupt is carried out
  • When finished (assuming it hasn’t been interrupted again) the original interrupt is loaded from the stack and carries on
25
Q

What is a device driver?

A

Piece of software, usually supplied with device, that tells the OS how to communicate with a device.

26
Q

What are multi-level feedback queues?

A
  • Uses a number of queues each with a different priority level
  • The algorithm can move jobs between these queues depending on the jobs’ behaviour
27
Q

What is a virtual machine? +/-

A

A program that has the same functionality as a physical machine
+ Can be backed up and duplicated
+ more than one can be ran at one time on a physical machine….
+…meaning that you only need on physical machine
- Not as good as the real thing
-Not as efficient

28
Q

What are common uses of Virtual machines?

A
  • Run OS’s within OS’s = Parallels for MAC emulates Windows OS on MAC. Useful when testing a program being developed on multiple platforms without buying the platform
  • Virtualising Networks = Many organisations make their servers a group of virtual machines running from a cluster of physical machines
  • Interpreting intermediate code
  • Test new software/configurations
  • Backup OS’
29
Q

What is the BIOS?

A
  • Basic Input Output System
  • What allows the computer to start up
  • Checks comp is functional, memory is installed and accessible and that the processor is working
  • It then uses Boot loader program to load OS’s Kernel into memory
  • Stored in RAM
30
Q

Why does increasing memory increase performance?

A

-Have to rely less on slow VM meaning your system will be faster

31
Q

What is a Java VM?

A
  • Usually you have to tailor code to a specific platform (Windows, Linux etc) but the JVM allows you to run the Java code on any device that can run the JVM
  • Offers platform independence. (The code is independent but the JVM itself is device specific)
  • .java contains classes, methods etc
  • JVM interrupts the byte code and executes the program
  • You write the code, compile it into byte code (intermediate code) and then anything with the correct JVM will be able to run the code
32
Q

What is open source software? +/-?

A

-Source code made public ally available
-User can modify it to suit there needs
-Anyone can have part in dev of software
-Eg: Linux
+Cheaper (usually free) than closed source
+mass support
+Regular updates
-Lacks polish of closed source
-Less secure

33
Q

What is Closed source software? +/-?

A

-Sold commercially with source code restricted from access
-Compiled to machine code so user can run it without having to translate it
+Security increased (copyright and malicious)
+Simpler
+Dedicated support and professional finish
-non-customisable
-Expensive