Module 2 Flashcards
Internet of Things
conceptualize how trillions of devices will be connected together.
What are the three primary categories of hardware components
1.The CPU
2.Primary Memory and Secondary Storage
3. Peripherals
Hardware definition
The physical equipment and devices that a computer is made up of
CPU
-brain of the computer
-aka processor
-performs the computing
-has its own machine language that usually doesnt work with other cpu, but some companies make their language compatible
-like engine of car
-price of computer is reflection of CPU
Basic Operations:
1. Arithmetic (sub, add, multi, divide)
2. Comparisons (<,>,=)
3. Logic (and, or, not)
4. Data movement (move data from one location to another)
5. Control Flow (how it decides what to do next)
Most common computer cpu: intel and AMD
Phones: ARM-based CPUS (Snapdragon and Apple’s A12)
Characteristics of CPU
- Make and Model: determine the characteristics, some better than others
- Speed: measured in GHz (Gigahertz), 3 Ghz can perform 3 billion operations per second
3.Number of Cores: modern ones are a combination of several processors (cores), a quad-core processor has four independent processors in it, so it can do four times as much compared to a single core
- Power Consumption: Speed and number of cores affect power, so need to be able to slow down speed and swithc to low power mode to conserve
- Cache: bigger the better
Secondary Storage
-long term (permanent) storage of a computer
ex: harddrives, flashdrives, Cd, Dvd, floppy disks
Secondary Storage for Computer contains:
1. Operating System (OS)
2. Programs (applications)
3. Documents and other data files
4. Settings and preferences
So basically everything u need
Harddrive
most common for modern computing
-inside: several magnetic disks that can store info in a small amount of space
-Space measured in terabytes (TB) which is trillions of bytes
-called drives bc of the physical motor that spins the magnetic discs
Flashdrives
-Static electricity used instead of magnitism
ex: USB, SD cards, SSDs (high speed, high capactiy flash drives)
-require less power than harddrive because no moving parts (drive so technically shouldnt call it a flashDRIVE
-modern ssds are faster than harddrives but have lower capacity and are more expensive than hardrives
Primary Memory
-Main Memory
AKA RAM (Random Acess Memory)
-not permamnetly saved, if computer loses power, info on primary memory is lost
-Working space of the computer, everything that is being done on the computer is stored here
CPU cant access the secondary storage, so info from there is copied into the primary memory so that it can be used
ex: when program is opened, it is always stored in secondary, but when opened, it is copied to the primary and is then started. This is why delay is there
When u save a file, it copied it from primary memory back to secondary storage
Where is the boot loader stored and what does it do
-boots up the computer since primary memory is initially blank, it is a program
-stored on the ROM (read-only memory)
-copies the operating system from secondary memory to the primary memory so that it can be run
What analogy represents the cpu, primary memory and secondary storage relationship
Cooper (CPU) sitting at a desk (primary memory) with a file cabinaent in another room(secondary storage)
Cooper has amnesia so he cant remember anything that is not infront of him on the desk, he can only get info from the secondary storage if his assidtant copies it and places it on his desk, now he can start working. Cooper can make changes to the papers, follow instructions, etc but at the endof the day if he wants to save his work for the next day he needs to get his assisnant to copy it back to the secondary storage because everything on the desk is destroyed at the end of the day
What are the main differences between primary memory and secondary storage
- Capacity: Primary is smaller than secondary
- Speed: Primary is significantly faster than secondary, even fastest ssds are 50 times slower than primary memory
- Connectivity: CPU directly interacts with primary, so it can see this info but NOT the secondary storage
- Permanence: Secondary is permanent, primary is not, anything not saved to secondary will be gone
How can you speed up a computer?
By having more primary memory. Think, a smaller desk has less area to work with, so it will get filled up quicker, but a bigger desk will not
When a computer is slowing down: it is needing to access the secondary storage more often, and too many programs are running.
If a primary needs more space, it can get rid of things on its, but it needs to amke sure that it is stuff already on the secondary. But if it keeps needing to go to secondary, it will slow it down because it is like an assistant continously copying the same pages back and forth
What is a cache
part of CPU
-built in fast short term memory that is neither the primary nor secondary,
-it is 100x faster than primary
think that in analogy, the person at the desk has post its on arm, so rather than having to look at desk for info it looks at itself
the larger the cache, the more the cpu can perform without the primary memoru
Peripherals
Everything that isnt the cpu, primary, or secondary
-monitor
-keyboard
-mouse
-touchpad
-touch screen
-camera
-mic
etc
also… stuff that is still peripherals but not directly interacted wtih
-wifi
-compass
-GPS
-LTE
-Ethernet
This is for event-based peripherals:
Originally needed customized hardware or software for the cpu/ operating system to connect to peripherals: DEVICE DRIVER or DRIVER
There is also a special piece of hardware that sits outside CPU but is connected to it that detects a mouse event (move the mouse or click button) and sends a signal to CPU to wake up and also puts mouse info into primary memory. Then, operating system stops what it is doing and reads the information and uses the device driver to understand what the mouse is doing and then causes the cursor on the screen to visually move
remember evan dennis polly and cooper analogy for that
Polling Peripherals:
constantly asking “did the mouse move?”
-less power consumed