Midterm 1 - hardware Flashcards

lect 8-9

1
Q

what is caching

A

caching is the process of retrieving information from a slower storage system and placing it in a faster storage so that it is readily accessible to a program

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

how many caches exist

A

secondary storage (slowest, largest)
memory/ram
L3
L2
L1 (fastest, smallest)

note: L cache is specifically stored directly by the CPU itself

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

how does a CPU use few basic operations, but extremely quickly

A
  • uses arithmetic logic –> a bunch of AND + OR gates

OR = inclusive “either or both”
XOR = exclusive “either, but NOT both”

  • control flow of logic to organize data movement

since the arithmetic is very simple –> can be done extremely quickly
since LOTS of arithmetic is done so quickly, easily capable to scale up to very complex operations

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

what are the key CPU characteristics (4)

A

CCCP

of cores –> how much multitasking can be done at once

core clock (hz) –> how quickly tasks can be performed

cache size –> how much information can be stored on a moments notice

power consumption

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

logic gate symbols

A

bullet = AND
arrow = OR
reinforced arrow = XOR

(practice)

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

secondary storage vs primary storage

A

differences: speed, size, permanence, connectivity

secondary = recgular drive storage –> very large, relatively slow to access data from

primary = ram –> fast access, small storage

CPU can only utilize data on primary/ram –> data on secondary is inaccessible

secondary does not require continuous power supply to retain info –> permanence
primary (ram) requires power. power off –> primary is wiped clean

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

how does a PC use secondary storage

A

program requests data from primary –> data is pulled into ram and therefore accessible to program (caching)

program no longer uses the data –> data is overwritten for more immediate tasks and therefore must be re-retrieved (re-cached)for later use

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

define peripheral

A

hardware not technically required for the PC to function. includes interaction and non-interaction stuff

eg monitor keybaord, wifi router, GPS, sensors

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

event driven vs polling peripherals

A

differentiated based on how/when they send/recieve signals

event-driven –> only sends signals when an action has occurred (eg keyboard)

polling –> continuously sends data, usually for monitoring/sensing changes in values (eg GPS)

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

software: application vs system program

A

programs/services are required for computer operations (eg drivers), usually operate in the background

applications are software that is intractable (eg games, media editors)

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

components of any software

A

instructions - how the program will utilize data –> logic control + flow

data - inputs the program will recieve, outputs it will return (eg textures, audio files, stored data files)

OS requests - what sorts of system resources the program will require –> must request access + allocation of resources from OS (eg X program requires X ram, Y storage space)

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

example of OS requests

A
  • access + allocation of RAM
  • access for user settings stored in a file from secondary storage (request to move file to RAM)
  • request access to server through specific ports
  • request to access/modify core system files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

components of an OS (3)

A

kernel
bundled apps
shell

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

OS - kernel

A

systems resource management –> quartermaster
responds to app requests –> sends authorizations for system access

AUTHORIZATIONS TO SAVED DATA + INTERNET ACCESS

therefore critical to security –> prevents malware from readily overtaking system

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

OS - bundled apps

A

pre-installed programs that come with the OS

includes critical sys files + bloatware

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