Programming - Hardware and Software Storage, I/O, and Computing Concepts
Overview of Data Storage Media
Types of Storage Media
Rewritable media (e.g., hard disk drives, SSD)
Paper tape as historical data storage
Used in the 1950s to 1970s
Inefficient, slow, and delicate; easily torn leading to data loss
Storage Hierarchy and Cost Factors
Cost of Storage Media
Magnetic tape remains economical for large scale enterprise use
Example: OU's large tape archive with over 18,000 tape cartridge slots
Stores tens of thousands of terabytes and can expand up to hundreds of thousands of terabytes
Cost comparison: thumb drives versus magnetic tape
Thumb drive cost approximately \\$7.07 than that of magnetic tape per unit
Speed of Access
Two key measures:
Bandwidth: Measured in bits per second (bps); e.g., 8,000,000 bps
Latency: Time taken for the first bit to be retrieved
Flash drives have latency in microseconds
Magnetic tape can have latency of up to a minute, due to retrieval times involving robotic tape archives
Historical Data Formats
Floppy Disks
High cost per megabyte (~\$1 per mB) compared to modern storage solutions
Imperative due to low capacity relative to today’s storage media (e.g., Blu-ray)
Input/Output (I/O) Terminology
Definition
Input/Output abbreviated as IO; term shows computer scientist's tendency to minimize terminology
Input Devices: Keyboard, mouse, touchpad, microphone, game controllers
Output Devices: Monitor, printer, speakers, touchscreen (input/output)
Arithmetic in Computing
Definition of Bits and Bytes
Bit: Short for binary digit; the smallest unit of memory
Represents two values: low voltage (off) or high voltage (on)
Byte: A sequence of eight contiguous bits
Smallest addressable unit of memory
Can represent 256 different values (0-255)
Can also represent characters (e.g., the letter 'g')
Words and Values Representation
Word: Contiguous sequence of 4 bytes (32 bits) or 8 bytes (64 bits)
When calculating the number of values:
One bit = 2 values
Two bits = 4 values (00, 01, 10, 11)
Continuing pattern shows 2^n values for n bits
Example: Numbers of possible values in bits
8 bits (byte) = 2^8 = 256 possible values
10 bits = 2^10 = ~1000 values
16 bits = 2^16 = 65536 values
32 bits = 2^32 = ~4 billion values
Memory Storage Units
Categories of Storage Units:
Kilobyte (KB) = 1024 bytes
Megabyte (MB) = 1024 KB
Gigabyte (GB) = 1024 MB
Terabyte (TB) = 1024 GB
Petabyte (PB) = 1024 TB
Exabyte (EB) = 1024 PB
Zettabyte (ZB) = 1024 EB
Yottabyte (YB) = 1024 ZB
Each category corresponds to escalating data amounts
Historical Development of Memory
1978: First personal computer had 4KB RAM (Tandy TRS 80)
1987: First PC with 1MB of RAM
1997: First PC with 1GB of RAM; necessity for high-capacity computing grows
2023: Servers hold up to 32TB of RAM
Moore's Law
Originated by Gordon Moore in 1965; states the number of transistors on an integrated circuit doubles approximately every two years
Implications include exponential growth in computing speed and capacity; significant advancements in computing capabilities over decades
Software Development Concepts
Definition of Software: Collection of programs, which are detailed descriptions of collections of data and sequences of actions on that data
Instructions: Specific actions a program can take (e.g., arithmetic calculations, memory operations, input and output)
Programming Languages: Rules for specifying data and instructions; estimated 9,000 programming languages exist
Examples: C, C++, Java, Python, etc.
Programming Fundamentals
Source Code: Human-readable instructions that comprise a program
Comments: Not executable code; used for human understanding
Leadership distinctions between C (procedural) and C++ (object-oriented) languages noted
Operating Systems
Definition: Software managing interactions between users, hardware, and software
Examples: Windows, MacOS, iOS, Android (Linux-based), various UNIX-like systems
Future of Computing and Analysis
Discussion on reliability of Moore's Law careening towards a technological wall due to physical limitations of transistor size
Representation of growth: Potential future advancements in computing capabilities, illustrated through current trends and historic values
Conclusion
Modern technology improvements pave the way for future development; educational focus continues on refining understanding of programming and system operation.