Computer Systems

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/70

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

71 Terms

1
New cards

Definition of Hardware

Hardware are the physical components that make up a device or computer system. These include both the internal components and also peripheral devices.

2
New cards

Definition of Software

Software is the computer code, which is programs and algorithms that give instructions to the hardware to make it perform the desired tasks. Without the software the hardware will not get any instructions, and will not do anything.

3
New cards

Label these logic gates

ABCD

A = NOT

B = AND

C = OR

D = XOR

4
New cards

What is the rule for the AND truth table?

Output is True (1) only when all the inputs are True(1)

5
New cards

What is the rule for the OR truth table?

Output is True when at least one of the inputs are True

6
New cards

What is the rule for the XOR truth table?

Output is True only when the inputs are different

7
New cards

What is the rule for the NOT truth table

The output is the inverted input

8
New cards

Label these truth tables

EF

E = Nand

F = Nor

9
New cards

What is the rule for the NAND truth table?

Output is True unless all the inputs are True

10
New cards

What is the rule for the NOR truth table?

Output is True only when all the inputs are False

11
New cards
<p>What are these Boolean expressions</p><p></p>

What are these Boolean expressions

1 = AND

2 = OR

3 = XOR

4 = NOT

12
New cards

What are the two types of software?

Application and System software

13
New cards

What is application software?

A program designed to perform a specific task that the user interacts directly with.

14
New cards

Examples of application software

Spreadsheets, web browser, word processor

15
New cards

What is system software?

Software that enables the computer to function and to control the computer hardware. It is concerned with running and maintaining the computer

16
New cards

Examples of system software

IOS, Windows

17
New cards

What is an operating system

A group of programs than manages the processor, memory, input/output devices, applications and security

18
New cards

What is application management?

Application software runs on top of operating systems which is an intermediary and takes care of interactions with the hardware.

19
New cards

What does the Operating System do for applications?

The operating system will maintain a directory of where each application and each data file is stored on disk. When the application is run, the OS will allocate space in memory for it to be loaded and the job will enter the queue of jobs being allocated processor time.

20
New cards

What does processor resources do?

Allows multiple applications to be run simultaneously by managing the processing time between applications and core and switching processing between applications very quickly. High priority applications will have more CPU time, but it means that lower priority applications will take longer to run.

21
New cards

What does memory management do?

Distributes memory resources between programs and manages transfer of data and instruction code in and out of main memory. It ensures that each application does not use excessive memory.

22
New cards

What does security do?

It ensures safety from threats and attacks by:

  • Controlling access to a computer by setting up passwords for different users, without the password others will be unable to access the software applications and files on your computer

  • Setting different access rights and privileges for different users

  • Automatically downloading security updates

  • Encrypting files that are stored on the hard disk

23
New cards

How does the OS control the interactions with input and output devices?

OS controls interaction will input, output, and storage using hardware drivers. This allows users to save files to the hard disk and print documents.

24
New cards

Advantages of High level languages

Easier to test/identify mistakes

Faster to develop

Better documented

Contain complex data structures

Code is more portable

25
New cards

Disadvantages of High level languages

Needs a translator

Runs slower because of the layers of abstraction and there is inefficiency in the translator

26
New cards

Advantages of low level languages

Produce code that is faster and better optimised

Programs written in assembly language can interact directly with hardware

Assembly language programs require less memory when executing

Programs written in assembly language have no unnecessary code added by a compiler

Appropriate for developing new operating systems, embedded systems and hardware device drivers

27
New cards

Disadvantages of Low level languages

Difficult to understand and modify

Assembly code is written for a specific processor architecture and so is not portable to other computer architectures.

28
New cards

What is Machine code?

This is the language computers understand. All codes whether assembler or high level programming languages need to be translated into machine code. Machine code is specific to a processor. Machine code instructions are made up of two parts the operator and the operand. The processor decodes the operator to identify the task that is to be carried out. The operand is the value or memory address that the instruction is to be operated on.

29
New cards

What is assembly language?

It provides basic computer instructions for programs to run. There is a one to one relationship between machine code and assembly code instructions. One assembly language instruction maps to one machine code instruction, thus the structure of assembly language and machine code is the same, but where machine codes uses 0 and 1 which are very difficult for programmer to understand, assembly language uses mnemonics which is easier for the programmer.

30
New cards

What are the types of program translators?

Interpreters, and compilers

31
New cards

What does an interpreter do?

converts high level languages into machine code one instruction at a time on-the-fly while the program is running. Each instruction is converted to machine code once the previous instruction has been executed.  Interpreters are good for debugging code because the program stops as soon as the error has been found.  However running code this way is much slower than running compiled code.  The machine code is not saved.

32
New cards

What do compilers do?

A program that converts high level languages into machine code before the program is run. A compiler saves the machine code, so the source code is no longer needed A compiler allows a program to be run faster than interpreted code.  Software is normally distributed as compiled machine code.  For proprietary software this is good because other people cannot copy the code and use it for their own applications.

33
New cards

What is the Von Neumann architecture?

It is the stored program concept, where program instructions and the data to be processed can be stored in the same memory?

34
New cards

What does the processor contain?

Arithmetic Logic Unit, Control Unit, clock, bus

35
New cards

What does the Arithmetic Logic Unit do?

Carries out the following instructions:

  • Logical operations – these include AND, OR and NOT

  • Shift operations – the bits in a computer word can be shifted left or right by a certain number of places

  • Arithmetic operations – these include addition, subtraction, multiplication, and division.

36
New cards

What does the Control Unit do?

The Control Unit coordinates all the activities taking place, inside the CPU. Its functions may be summarised as follows:

  • It controls the execution of instructions in the correct sequence

  • It decodes instructions

  • It regulates and controls processor timing using regular pulses from the system clock

  • It sends and receives control signals to and from other devices within the computer

37
New cards

What does the system clock do?

The system clock controls processor timing, switching between zero and one at rates exceeding several million times per second. It synchronises all CPU operations.

38
New cards

What is the clock frequency?

Number of clock cycles which occur per second

39
New cards

What is the bus?

The bus is the internal connections of the CPU, it passes data between the components of the CPU. Data and instructions are passes between registers and other components along the buses.

40
New cards

What is the system bus?

A collection of buses connecting the system components

41
New cards

What is the steps to the fetch-execute cycle?

When a program is to be run it needs to be loaded into main memory first, then it can be accessed by the processor, which runs each instruction in turn. When the program is loaded, the processor fetches an instruction, decodes it and then executes it. The processor executes one instruction at a time. This si the fetch-execute cycle.

42
New cards

What is the fetch-part of the fetch-execute cycle?

  • The address A of the next instruction to be executed is fetched from the register where it is held

  • This register is incremented so it points to the next instruction to be fetched

  • The instruction at address A is fetched from the memory and out into a special register ready to be decoded.

43
New cards

What is the decode part of the fetch-execute cycle?

The Control Unit decodes the instruction to see what has to be done next

44
New cards

What is the execute part of the fetch-execute cycle?

The instruction is executed

45
New cards

What factors affect CPU performance?

Clock speed, Cache memory and Processor cores

46
New cards

What is the clock speed?

The number of cycles that a processor carries out per second whereby each cycle of the CPU allows a single instruction to be carried out. The greater the clock speed, the greater the number of operations and the faster the computer will run

47
New cards

What does the number of processor cores do?

Having multiple cores allows instructions to be carried out concurrently, whereas a single core will only allow carry out instructions in serial.

48
New cards

What is cache size and what does it do to the CPU performance?

Frequently used data and instructions within an application can be stored in cache instead of fetching from RAM which is quite slow. The bigger the cache the greater the volume of data and instructions that can be stored thereby reducing latency and improving performance of the CPU.

49
New cards

What is volatile memory?

When the computer is turned off the contents of volatile memory is lost. When there is no power, volatile memory is erased. Volatile memory can be accessed directly from the CPU. E.g RAM

50
New cards

What is non-volatile memory?

Even when there is no power, the data remains unchanged and can be accessed once again once power has been resumed. This allows you to store files for the long term. It cannot be accessed directly by the CPU so data and instructions have to be read from storage into memory first. E.g. Hard disks and solid state devices

51
New cards

What is RAM used for?

RAM is used to hold programs currently being executed, and the data the programs are using. When a program needs to be executed the program and any data needed for that program to run needs to be loaded into main memory so that the processor can access the instructions. The main purpose of RAM is to act as temporary storage for programs and data while the program is being executed.

52
New cards

What is ROM?

Data can only be read from the device, and the memory cannot be edited or deleted. It is only used for situations where you can be sure that updates will not be needed. The computer’s basic input output system which controls the boot up sequence is stored on a ROM chip. You cannot write over the contents once it has been created, it is non-volatile

53
New cards

RAM vs ROM

RAM

ROM

Volatile – data is lost when the power is turned off

Non-volatile – data is NOT lost when power is turned off

Stores user data/programs/part of operating system which is currently in use

Used to store the BIOS which is required at start-up of the computer

Memory can be written to or read from

Memory can only be read from but NOT written to

54
New cards

What is secondary storage?

Secondary storage is a long term storage and refers to hard disk drive, optical disks and more recently solid state drives.  It generally holds much more data than main memory and is relatively inexpensive per MB, however it tends to have slower access speeds than main memory, it also needs to be robust and reliable.

55
New cards

What do you need to consider when choosing a storage device?

Capacity, Speed, Portability, Durability, Reliability

56
New cards

How does a magnetic disk work?

A hard disk uses rotating platters coated with magnetic material. Iron particles on the disk are polarised to become either a north or south state. This represents 0 and 1. The disk is divided into tracks in concentric circles, and each track is subdivided into sectors. The disk spins very quickly at speeds of up to 10,000 RPM. A drive head moves across the disk to access different tracks and sectors. Data is read or written to the disk in order to prevent damage from movement.

57
New cards

Advantages of Magnetic disks

  • Cheap form of storage

  • Large capacity

  • Very reliable

58
New cards

Disadvantages of Magnetic disks

  • Not very portable because of moving parts, so it can be damaged when carried or dropped

  • Electromagnetic surge can corrupt the data held

  • Slow speed of read/write access

59
New cards

Examples of Magnetic storage

HDDs, Magnetic tapes, Floppy disks

60
New cards

How do solid state drives work?

Sold state devices all use flash memory. They are built from special types of transistors that do not lose their state when the power is switched off.

 It uses millions of switches called floating gate transistors or microchips to store data.

Electrons are stored in gates and this is encoded as 0 when there is an electron present and encoded a 1 when there is no electron present.

The electron remain trapped even when there is no flow of electricity

61
New cards

Advantages of Solid State Drives

  • No moving parts making them more reliable

  • Considerably lighter than HDDs making them portable

  • Faster access time because they don’t spin and data can be accessed instantaneously

  • Low power consumption

  • Don’t rely on magnetic properties so are unaffected by magnetic fields

  • Quiet

62
New cards

Disadvantages of Solid State Drives

  • More expensive per volume of storage

  • May deteriorate over time and not last as long as HDDs

63
New cards

How do optical devices work?

An optical disk works by using a low-powered laser to read the disk by bouncing light onto its surface – which is covered in pits and lands. At the point where a pit starts or ends, light is scattered and therefore not reflected so well. A land, and the bottom of a pit reflects the light well. Non-reflective and reflective areas are read as 1s and 0s. There is only one single track on an optical disk, arranged as a tight spiral.  

64
New cards

Advantages of optical devices?

  • Cheap to produce

  • Easy to send through the post for distribution purposes

65
New cards

Disadvantages of optical devices

Con be corrupted or damaged easily by excessive sunlight or scratches

66
New cards

Examples of optical devices

CD, DVD, Blu-ray disks

67
New cards

Examples of Solid State devices

SSDs, memory sticks, and memory cards (SD cards)

68
New cards

What is cloud storage?

Cloud Storage refers to saving data in an off-site storage system maintained by a third party for example Microsoft/google. Instead of saving data on the computer’s hard rive or other local storage devices you save it in a remote storage facility and access it via the internet. The data is stored usually on hard disks but increasingly on solid state drives in remove locations in different countries.

69
New cards

Advantages of cloud storage

  • Able to access from anywhere in the world

  • You can share the data with other people in different locations

  • Backup is no longer such an issue, as it is the responsibility of the provider to keep the data safe

70
New cards

Disadvantages of cloud storage

  • To access the data a strong internet connection is required

  • Some users are concerned about security in the cloud, and whether their data could be attacked by a hacker

71
New cards

What is an embedded system?

 

An embedded system is a computer system that is designed for a specific function. For example, the circuits inside a washing machine, car engine or MP3 player were created to perform tasks and cannot be re-programmed to perform something else. You couldn’t install the circuitry from your washing machine in your ca and expect it to work.