U15 Hardware and Virtual Machines Flashcards

1
Q

CISC

A
  • complex instruction set computer
  • designed to carry out a given task with as few lines of assembly code as possible
  • CISC processor is based on a complex instruction which needs to be converted by the processor into a number of sub-instructions to carry out the required operation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

fixed length instructions

A

the amount of memory it will consume is fixed (e.g: 16 bits)

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

variable length instructions

A

can take as much space as it wants

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

hardwired control unit

A
  • uses logic circuits
  • flip flop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

programmable control unit

A

uses programs, code will compile, run and generate output

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

features of CISC

A
  • larger number of instructions + more complex
  • fewer registers => most processing is done in memory
  • many instruction formats
  • requires more complex circuit
  • has more addressing modes
  • makes less use of RAM
  • poor pipelineability
  • uses multicycle and variable length instruction
  • has programmable control unit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

RISC

A
  • reduced instruction set computer
  • less instruction => better performance from the processor (does not need to break complex instructions)
  • assembly code is broken into a number of single cycle instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

features of RISC

A
  • fewer instructions
  • better pipelineablity
  • many registers
  • simpler instructions
  • few instruction formats
  • usually uses single cycle instructions
  • uses fixed length instructions
  • less complex circuit
  • fewer addressing modes
  • makes more use of RAM
  • has hardwired control unit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

pipelining

A
  • instruction level parallelism => multiple operations are performed in a single cycle
  • execution of an instruction is split into number of stages
  • when first stage for an instruction is completed the first stage of the next instruction can start executing
  • another instruction can start executing before the previous one is finished
  • processing of a number of instructions can be done simultaneously
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

alternate method to pipelining

A
  • content of five stages can be stored in register
  • then the processor can be restored to its previous state once the interrupt has been serviced
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

flynn’s classification

A
  • computer architecture
  • based on number of instructions and data
  • instruction stream: sequence of instructions executed by the processing unit
  • data stream: sequence of data or temporary result called by instruction stream
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

single instruction single data (SISD)

A
  • only one processor
  • processor executes one set of instructions on one set of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

single instruction multiple data (SIMD)

A
  • uses many processors
  • each processor has several ALUs
  • each ALU executes the same set of instruction on a different set of data at the same time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

multiple instruction single data (MISD)

A
  • several processors
  • each processor executes a different set of instructions on one set of data at the same time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

multiple instruction multiple data (MIMD)

A
  • several processors
  • each processor executes a different set of instructions
  • each processor operates on a different set of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

massively parallel computers

A
  • large number of processors
  • working collaboratively on the same program
  • working together simultaneously on the same program
  • communicating via message interface
17
Q

hardware issue in massively parallel computers

A
  • processors need to be able to communicate
  • so that processed data can be transferred
  • from one processor to another
  • so it’s a very challenging topology
18
Q

software issue in massively parallel computers

A
  • appropriate programming language should be used
  • which allows data to be processed by multiple processors simultaneously
19
Q

features of MPCs

A
  • large number of processors
  • collaborative and simultaneous processing
  • network infrastructure
  • communicate by sending messages
20
Q

conditions for MPCs

A
  • no single processor
  • should have separate buses
21
Q

virtual machine

A
  • software that emulates a different computer system
  • allows multiple guest OS’s to run on one computer using a host OS
22
Q

virtual machine manager

A

a type of software that allows us to run an operating system within another

23
Q

host operating system

A
  • the operating system that is actually controlling the physical hardware
  • or the operating system that is running VM software
24
Q

guest operating system

A
  • operating system running in a VM and controls virtual hardware
  • guest OS is running under the host OS software
25
Q

role of virtual machine software in the testing of an app

A
  • can create and manage a virtual machine
  • translate instructions used by guest OS to what is required by host OS
  • emulates hardware
  • protects each VM so instances of the app can be tested together
26
Q

using VM software to test an app pros

A
  • multiple OS can exist simultaneously allowing for testing using same hardware
  • only one set of hardware is required
  • reduces cost of producing the app as there will be no need to set up more than one computer
27
Q

using VM software to test an app cons

A
  • execution of extra code
  • performance is degraded and more time taken to create the app
  • cannot make judgements about response time
28
Q

pros of using VM to produce software

A
  • software can be tried on different OS using same hardware
  • no need to purchase different types of hardware
  • easier to recover if software causes system crash
  • VMs provide protection to other software
29
Q

cons of using VM to produce software

A
  • execution of extra code so processing time is increased due to which speed of real performance cannot be tested accordingly
  • a VM might not be as efficient because it might not be able to access sufficient memory
  • VM may not be able to emulate some hardware as they may not be able to be tested using one
30
Q

uses of virtual machines by webservers

A
  • could use alt OS to identify possible problems + it’s much easier to create a VM with a new operating system rather than creating a new OS
  • could provide a safe environment during testing which doesn’t disrupt the web server services
  • easier to try different webserver and OS combo
31
Q

guest OS receiving data request from an application

A
  • handles the request as if it were running on its own physical machine and it is not aware that it is running on a virtual machine
  • I/O requests are translated by VM software into instructions executed by host OS
  • host OS retrieves data from the file
  • host OS passes the data to VM software
  • VM passes the data to guest OS
  • guest OS passes the data to the application
32
Q

tasks performed by VM software

A
  • creates VM
  • hardware emulation => existing hardware is made available to guest OS
  • controls virtual hardware
  • ensures each VM is protected from actions of another VM