Review and Introduction to Computation Notes
Classroom Procedures and Logistics
Room 249: Digital Information Technology
- Restroom Policy: Only one male or one female student is permitted to go to the bathroom at a time.
- Process: Raise a hand and point toward the Kiosk. Use the Kiosk system (when operational) and Hall Passes.
- Office/Clinic Pass: A specific form must be filled out in addition to using the Kiosk.
Classroom Rules and Courtesy
- Communication: When the instructor is talking, students must remain silent. Similarly, when another student is addressing the class or the instructor, others must listen.
- Garbage: Disposal of waste should wait until the end of the class period.
- Movement: Students are not to wander or walk around the classroom unless engaged in group work.
- Behavioral Standard: There is a strict policy against bullying or talking down to others.
- Device Usage: Computers are to be turned on or off only when instructed. Logins use generic DAS credentials, and files are stored in Google Drive. Students must remain on task and use only approved programs or apps on Clever.
Grading and Syllabus Highlights
- Course Goal: Cover a large volume of material at a medium depth level for High School credit.
- Tests and Quizzes: Account for of the total grade ( points per test, points per quiz). These are largely administered via online Google Forms or presentations.
- Homework, Projects, and Classwork: Account for of the total grade. This includes notebook checks and online submissions.
- Bell Work: Graded notebook checks often include unscrambling technical terms such as:
- 1. MEHOTR (Mother)
- 2. RADBO (Board)
- 3. CPBA (PCBA)
- 4. OMTEUPCR (Computer)
- 5. TSRCEA (Traces)
- 6. TUIIRCC (Circuit)
- 7. EBUSS (Buses)
- 8. CRAD (Card)
- 9. PTRO (Port)
- LOTS (Slot)
Introduction to Computing
Definitions and History
- Computing: This refers to what is done with Computer Science. It involves using tools to perform work, specifically adding, subtracting, and repetitive mechanical patterns.
- Evolution: Progressed from mechanical systems to electrical and finally to electronic systems. Early computing was rooted in math, counting, and repeatable, verifiable statements.
- The Abacus: Dated to approximately in Babylon. Its original form consisted of lines in the sand with small stones. It is described as a "Hand Operated Counting Tool."
Number Systems
- Binary: Base-2 system using symbols and (Bits).
- Roman Numerals: Uses symbols , , , , , , .
- Decimal/Denary: Base-10 system using symbols , , , , , , , , , .
- Hexadecimal: Base-16 system using symbols and letters , , , , , .
- Counting Logic: In any base, move to the rightmost position and add ONE until the pattern repeats, then carry ONE over to the next column.
- In Binary: .
- In Decimal: .
- In Hexadecimal: .
Unit Prefixes for Magnitude
| Prefix | Symbol | Factor | Power |
|---|---|---|---|
| tera | |||
| giga | |||
| mega | |||
| kilo | |||
| hecto | |||
| deca | |||
| (none) | - | ||
| deci | |||
| centi | |||
| milli | |||
| micro | |||
| nano | |||
| pico |
Standard Storage Units vs. Binary Storage Units
| Name (Decimal) | Storage | Name (Binary) | Storage |
|---|---|---|---|
| Kilobyte | Kibibyte | ||
| Megabyte | Mebibyte | ||
| Gigabyte | Gibibyte | ||
| Terabyte | Tebibyte | ||
| Petabyte | Pebibyte |
Computer Hardware and Moore's Law
Moore's Law
- Observation: The number of transistors on a microchip doubles approximately every years.
- Purpose: It serves as a guide for long-term planning and sets R&D targets for the semiconductor industry.
- Impact: It is linked to the reduction in quality-adjusted prices of processors, memory capacity increases (RAM/Flash), sensor improvements, and digital camera pixel density.
- Future: The industry may be approaching the physical limitations of this law.
Modern Digital Computer Architecture
- Logic Base: Computers are built on binary numbers, logic gates, instruction sets, and switches (transistors or vacuum tubes).
- Central Processing Unit (CPU): Now primarily a semiconductor Integrated Circuit (IC).
- Graphics Processing Unit (GPU): A specialized processor designed specifically for handling graphics tasks.
- Memory/Storage:
- Memory: Temporary storage for instructions that can change (RAM).
- Storage: Long-term storage of data (SSD - Solid State Drives, HDD - Hard Disk Drives, RAIDS).
- Buses: Wires or metal "traces" that move data between components.
- Printed Circuit Board Assembly (PCBA): The board containing the CPU, GPU, memory, and supporting electronic components (resistors, capacitors, inductors).
Software and Operating Systems
Software Categories
- System Software: Includes the Operating System, Middleware, Firmware, and BIOS.
- Application Software: Tools for specific tasks, such as office suites, web browsers, databases, graphics software, and communication platforms.
- Programmable Software: Languages used to create programs, such as Assembly, , Java, and Python. These are often compiled into binary/executable files or run via emulators.
The Operating System (OS)
- Primary Responsibilities:
- Processor management.
- Memory management.
- Device management.
- Storage management.
- Application Interface.
- User Interface.
- Generations of OS:
- First Generation (): Vacuum tubes and plugboards; no OS; programmed in machine language; very slow.
- Second Generation (): Transistors and batch processing (punch cards); jobs grouped to reduce idle time.
- Third Generation (): Integrated Circuits; introduced multiprogramming (multiple jobs in memory) and time-sharing (multi-user access, e.g., UNIX).
- Fourth Generation (): LSI microprocessors; Personal Computers; Graphical User Interfaces (GUIs), networking, and mobile operating systems (Windows, MacOS, Linux, iOS, Android).
BIOS and UEFI
- BIOS (Basic Input/Output System): A program embedded on a microprocessor that initializes hardware and manages data flow between the OS and devices during bootup.
- History: Invented by Gary Kildall in ; integrated into the IBM PC in .
- UEFI (Unified Extensible Firmware Interface): The modern replacement for BIOS.
- Introduced in .
- Supports drives larger than using GUID Partition Table (GPT) instead of Master Boot Record (MBR).
- Features superior speed, security, and user interfaces.
- Types of BIOS:
- Legacy: Older firmware with text-only menus and a disk limit.
- EFI: Developed by Intel to fix BIOS shortcomings.
- UEFI: Maintained by the Unified EFI Forum (including Apple, Intel, Microsoft, and IBM).
Microsoft OS History
MS-DOS (Microsoft Disk Operating System)
- Origin: Derived from Seattle Computer Products' QDOS (Quick and Dirty Operating System), licensed by Microsoft for in July .
- Versions:
- 1.0 (): Official release for the IBM PC.
- 1.1/1.25 (): Supported double-sided disks; first version titled "MS-DOS."
- 2.0/2.1 (): Supported hard drives (PC XT) and ROM cartridges.
- 3.0-3.2 (): Developed for IBM PC AT; introduced LAN support () and -inch floppy disks ().
- 3.3/4.0 (): Supported disks and multitasking (, primarily in Europe).
- 5.0 (): Introduced the "edit" text editor and himem.sys for Upper Memory Area (UMA) loading.
- 6.0-6.22 (): Included double-space disk compression. Version had to remove DBLSPACE due to legal infringement of STACKER software; it was replaced by DRVSPACE in .
Windows Versions
- Windows 1.0 (): Graphical operating environment; limited multitasking.
- Windows 2.0 (): Introduced Control Panel, Word, Excel, and overlapping windows.
- Windows 3.0 (): First version to receive critical acclaim; better multitasking and memory management.
- Windows 95 (): The first "complete" Operating System; introduced the taskbar, Start menu, and Long File Names; shifted from -bit to -bit GUI.
- Windows Vista (): Improved GUI; first to use DVD-ROM for installation.
- Windows 7 (): Redesigned taskbar; introduced "Libraries."
- Windows 8 (): Optimized for touchscreens; increased cloud integration; redesigned Task Manager.
- Windows 10 (): Virtual desktop system; automatic file compression to save storage.
- Windows 11 (): Redesigned Start menu; "Widgets" panel; integrated Microsoft Teams; Auto HDR and DirectStorage for gaming.
UNIX and Linux History
UNIX
- Development: Created by Ken Thompson at AT&T Bell Labs in on a PDP-7 minicomputer.
- Portability: Dennis Ritchie and Ken Thompson rewrote UNIX in the programming language in , allow it to run on different hardware.
- Variants: Included Berkeley Software Distribution (BSD), which was suppressed in the by an AT&T lawsuit (USL v. BSDi).
Linux
- Development: Started in by Linus Torvalds at the University of Helsinki as a hobby project for his 80386-based PC.
- Naming: The kernel was eventually named Linux; Torvalds released the first version () on September , .
- Licensing: Relicensed under the GNU General Public License (GPL) in .
- Distributions:
- Slackware (): Oldest currently existing distribution.
- Debian (): Largest community distribution.
- Red Hat/SUSE (): Commercial Linux distributions.
- Ubuntu (): Reached users by .
- Key Milestones:
- : Version introduced Symmetric Multiprocessing (SMP); TUX the penguin became the mascot.
- : IBM and Oracle announced support; Linux appeared on the TOP500 supercomputer list.
- : Android (Linux-based) claims of the smartphone market.
- : All TOP500 supercomputers run Linux.
File Systems and Command Shells
File System Fundamentals
- Purpose: A structure used by the OS to organize data on storage devices. It prevents resource contention and data corruption.
- Naming Convention: Uses the format
filename.extension. For example,.sysfiles are typically large system files. - Hierarchy: Uses a Root Directory (usually labeled as the "C:" drive in Windows) containing directories (folders) and files.
Windows CMD Commands
copy: Moves one or more files to a different location.del: Deletes files.rename(orren): Changes a file's name.attrib: Changes file attributes (e.g.,attrib -h -s -rto show hidden/system/read-only files).cd: Changes the current directory.dir: Lists files and subdirectories.tree: Displays the folder structure graphically.mkdir(ormd): Creates a new directory.
Linux Terminal Commands
- Note: Commands in Linux are case sensitive.
pwd: Print Working Directory (shows current location).ls: List directory contents (equivalent todir).ls --help: Displays usage format for thelscommand.man ls: Opens the manual (help pages) forls.df -h: Shows free disk space in a human-readable format.cd: Change directory.