1
Q

What does it mean when binary is described as base 2?

A

This refers to how there are two base values in this system, 0 and 1.

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

What values can a bit be?

A

0 or 1

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

How many bits are in a byte?

A

8 bits in 1 byte

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

What level language are machine languages/code?

A

Machine language is the lowest level

This is closest to the hardware

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

What level language are programming languages?

A

Programming languages are higher level languages.

Have to be translated into the machine language of the particular processor.

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

What is Von Neumann architecture?

A

This is a program model that describes the architecture relevant to instruction operation which in turn describes how computers are created.

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

What architecture does Von Neumann architecture consist of?

A
  1. A single, shared memory for programs and data
  2. A single bus for memory access
  3. An arithmetic (logic) unit
  4. A (program) control unit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When was the Von Neumann model first published and by who?

A

1945

John von Neumann

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

What are the key elements of Von Neumann architectures?

A

Data

Instructions (how instructions interact, fetched and executed)

Storage of Binary Bits

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

In terms of computers, what are instructions?

A

Instructions are the part of the code that gets executed whenever an application/program/OS is run. They contain an operation called ‘op code’ and addresses/registers.

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

What are the THREE concepts that underlie Von Neumann Architecture?

A
  • Program instructions and data are stored in a single read/write store (main memory/storage e.g. SSD/HDD)
  • The contents of this memory is addressable by memory location, regardless of the type of data contained at the location
  • Execution of program instructions occurs sequentially, unless explicitly modified
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the components of a central processing unit (CPU)?

A
  1. Arithmetic Logic Unit (ALU)

2. Control Unit (CU)

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

What is the Fetch-Decode-Execute Cycle?

A
  • Cycle
    • A processor can have several states which include fetch, decode and execute
  1. Fetch
    • CPU takes instructions and data from main memory and stores it in special memory locations (Registers)
  2. Decode
    • CPU interprets instructions that were fetches
  3. Execute
    • The instruction is carried out on the data and any temporary result is stored in a register
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does a PC use to advance through a program?

A

CPUs use a program counter (PC). This contains the address of the next instruction to be executed from memory.

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

What are interrupts?

A

Modern computer systems are interrupt driven

An interrupt is a signal to the processor to suspend its current tasks and deal with whatever caused.

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

What are the broad classifications for interrupts?

A
  • Program/Software (generated when executing instruction, often through system calls/soft sys calls)
  • Timer (interrupts that occur in regular intervals so sychronise processors)
  • I/O (interact with input and output devices)
  • Other hardware
17
Q

What are system calls/soft sys calls?

A

They are instructions that execute a special subroutine which is called by the CPU to execute, this results in an interrupt.

18
Q

What key feature of modern computer systems is allowed to be implemented by interrupts?

A

Multiprocessing is enabled by interrupts

19
Q

What is multiprocessing?

A

This is the capacity to have multiple programs in memory and switch the processory between them, gives the illusion of many programs running at the same time.

20
Q

What are some examples of factors that can determine the order in which programs are executed?

A
  • Priority
  • Time-sharing
  • I/O interrupts
    etc.
21
Q

What are soft interrupts?

A

These are interrupts that are generated by instructions that are being executed by the computer. They allow the current execution to be halted so that different instructions can instead be executed instead. After this new instruction has been completed, the original instruction can be resumed.

This allows CPUs to be more efficient at multitasking as they can pause and resume applications that are open without having to completely exit and restart the application every time it isn’t in use by using regular interrupts between applications. This also reduces any waiting that would be required if applications had to be completely closed and opened every time they are not currently in use.

22
Q

What are hard interrupts?

A

These are interupts that are generated from physical sources or hardware. They allow the current execution to be halted so that different instructions can instead be executed instead.

This allows CPUs to be more efficient at multitasking as they can pause and resume applications that are open without having to completely exit and restart the application every time it isn’t in use by using regular interrupts between applications. This also reduces any waiting that would be required if applications had to be completely closed and opened every time they are not currently in use.

23
Q

What are commonly used approaches/patterns for application architecture?

A
  1. Client-server architecture
  2. Three-layer client-server architecture
  3. Web services architecture
  4. Internet and web-based application architecture
24
Q

What are the four important parts of application architecture?

A
  1. Presentationm logic - the UI which is used to control the application
  2. Application/business logic - Defines what the application does
  3. Data access logic - Defines how the application manages its data
  4. Data storage - Where the data is kept e.g. files or data base
25
Q

What is server-based architecture?

A

One of the oldest architectures

Predominantly used by accessing Unix based servers through a terminal emulation to access the data

Almost all processes are handled by the server:

  • Presentation logic
  • Application / business logic
  • Data access logic
  • Data storage

Client has ‘dumb’ terminal which is used to send keystrokes to the servers and recieves text from the server

PROBLEMS WITH ARCHTECTURE?

  • Server can become bottleneck
  • Upgrade can be expensive and ‘lumpy’
26
Q

What is client-based architecture?

A

All logic/processes handled client side:
Presentation logic
Application/business logic
Data access logic

Data is stored server side

PROBLEMS WITH ARCHTECTURE?
All data must travel back and forth between server and client (NETWORK BOTTLENECK POSSIBLE)

Due to this issue, this model of architecture is not/rarely used.

27
Q

What is client-server architecture?

A

This is a balanced architecture.
Good scalability and reliability as clients can handle graphics logic and processing logic whereas servers can focus on data.
Reliable as data only access when needed.
Common architecture

The presentation and application/business logic is handled by the client.

The data access logic and data storage is handled by the server.

28
Q

What is thin-client architecture?

A

Client handles presentation logic

Server handles application / business logic, data access logic and data storage

Application must be lightweight

Common applications are web browsers

PROBLEMS WITH ARCHTECTURE?
Server handles MOST application logic, server can be bottleneck

ADVANTAGE?
Ony one server needs updating! There can be high end servers, server farms, cloud based servers

29
Q

What is multi-tier architecture?

A

TWO servers and ONE client

Client handles presentation logic

One / middle server handles application / business logic

One / back-end server hands data access logic and data storage

Better for higher loads such as with larger numbers of users as it distributes the load between servers.

60/40 or 40/60 load balancing between servers depending on application

PROBLEMS WITH ARCHTECTURE?
High load on internal network can be bottleneck

30
Q

What is peer-to-peer architecture?

A

This is when clients act as BOTH SERVER AND CLIENT

Clients handle all processes and use local logic processes to access stored data on another computer/client.

Used in games/media/file sharing systems.

PROBLEMS WITH ARCHTECTURE?
Bottleneck with network and client computers

31
Q

What are registers?

A

They are fast access memory stores where CPUs store data that they are currently working on/instructions that they are currently executing.