Unit 4 HACKS
HACKS for the Week Blog
- Unit 4 HACKS
- How a Computer Works
- The Internet
- Fault Tolerance
- Parallel and Distributed Computing
- Think of ways to make something in you team project to utilize Cores more effectively. Here are some thoughts to add to your story of Computers and Networks.
- What is a naturally Distributed in Frontend/Backend archecture?
- Analyze this command in Docker: ENV GUNICORN_CMD_ARGS="--workers=1 --bind=0.0.0.0:8086". Determine if there is options are options in this command for parallel computing within the server that runs python/gunicorn.
- Can you get parallel code on images to work more effectively?
How Does a Computer Work?
- Computers need a program to do something
- Starts with the CPU (Central processing unit)
- CPU is a binary machine focussing on the progran instructions
- CPU retrieves and stores the data with RAM (Random Access memory)
- CPU, RAM, and Storage DEvices together can wrok with many programs.
List Specifications of my Computer
- Processor: Intel Core i7 12700KF CPU @5.00 GHz
- Memory (GB): 32 GB 4400 Mhz
- Storage (GB): 2,047 GB
- OS: Microsoft Windows 10 Home
Internet
- EK
- A device is a artifact that can run a program. Examples are computers, tablets, routers, etc.
- A CS is a group of devices and programs working together for a purpose
- A network is a gorup of connected computing devices cpaable of sending or receiving data
- A network is a type of computing system
- A path between two devices on a network is a sequence of directly connected computing devices that begins at the sender.
INPUT DEVICES - Some examples of input devices are: keyboards, mouse, joy stick, light pen, track ball, scanner, graphic table, microphone
OUTPUT DEVICES - Some examples of output devices are: monitors, printers, speakers, headphones, projecters, GPS deivces, optical mark readers, and braille readers
PROGRAM FILE - Directory name of a standard folder in Microsoft Windows operating systems in which applixation that are not part of the operating system are conventionally installed
PROGRAM CODE - Instructions given to a machine to create a computer program
PROCESSES - Managing a set of tasks through the use of source code then manually
PORTS - Number assigned to uniquely identify a connection endpoint and to direct data to a specific service
DATA FILE - Computer file which stores data to be used by a computer application or system, input and output data
INSPECT RUNNING CODE - Basically debug which we have gone over and used during class
INSPECT VARIABLES - Can be done while using the debug
[x] Watch/Review College Board Daily Video for 4.1.1
Complete Vocabulary Matching Activity. Incorporate this into your learnings from year. To analyze measure path and latency use traceroute and ping commands from Linux Terminal.
- Path > A
- Route > E
- Computer System > B
- Computer Device > C
- Bandwidth > D
- Computer Network > F
[x] Watch/Review College Board Daily Video for 4.1.2
Complete True/False Questions
- Open standards and protocols enable different manufacturers and developers to build hardware and software that can communicate with hardware and software on the rest of the internet.
T
- IETF is a task force used to enforce laws to keep manufacturers out of the internet
F
- Routes are determined in advance and are not flexible
F
- A protocol is an agreed-upon set of rules that specify the behavior of a system
T
- UDP guarantees transfers and is faster
F
- The World Wide Web is the internet
F
- HTTP is a protocol used by the World Wide Web
T
[x] Watch both Daily Videos for 4.2
A -- B -- C -- D -- E -- F -- G
- Slow process and few resource, one path fails the other fails (can be visualized as a bridge)
A -- B -- C -- D -- E -- F -- G -- A -- C -- (ect....)
- each letter communicates with each other
- lots of different resources can be sent
[x] Watch Daily Video for 4.3
In a frontend/backend architecture, the frontend is naturally distributed across multiple client devices, while the backend can be distributed across multiple servers to improve scalability and fault tolerance. Each client device communicates with the backend server(s) to request data and perform various operations.
Used to configure the Gunicorn web server, port 8086. Workers specifies the number of worker processes that would be created to handle incoming requests.
Yes, parallel programming techniques such as multithreading, multiprocessing, and GPU acceleration can be used to make image processing code work more effectively by processing smaller sections of the image in parallel on multiple cores, resulting in faster and more efficient code. However, the effectiveness of parallel processing depends on various factors such as image size, processing complexity, and hardware resources available.