马欣语 Vancouver Introduction to Management Information Systems - COMM205
- Student:Xinyu Ma 马欣语;UBC(Toronto - 3 = Vancouver);Introduction to Management Information Systems
- Tutor:Stanley
A02 - Hardware & Software
1. Learning Objectives|学习目标
- 描述计算机发展的六个世代(six generations of computing)及各自关键技术。
- 识别四类计算机硬件:Input、Process、Output、Storage,并能举例。
- 解释数字数据如何从 bit、byte 衡量到 petabyte。
- 说明 motherboard、CPU、RAM、ROM、cache 的作用。
- 区分 primary storage(RAM / ROM)与 secondary storage(magnetic / optical / flash / cloud)。
- 解释 LAN、WAN、client-server model、cloud-based network。
- 区分 firmware、operating system(OS)、application software。
- 比较 proprietary software 与 open-source software,并说明组织取得 application software 的三种方式。
- 将 application software 分类为 horizontal-market、vertical-market、one-of-a-kind。
2. History of Computing|计算机发展的六个世代
- Generation 1 — Vacuum Tubes(1940s):使用 vacuum tubes。电脑巨大、发热高、脆弱,一次只能运行一个程序。ENIAC(1946)约使用 18,000 个真空管,重约 30 吨,占地约 250 m²;输入使用 punch cards。
- Generation 2 — Transistors(1950s):transistors 取代 vacuum tubes,更小、更可靠、功耗更低;电脑开始进入企业和政府。IBM 650 是首批大规模生产的电脑之一;magnetic data-storage drums 提升数据访问速度。
- Generation 3 — Integrated Circuits, ICs(1960s–70s):一个 silicon chip 上集成多个 transistors,电脑更小、更快、更便宜。Operating systems 出现,可同时运行多个程序;keyboard / monitor 逐渐取代 punch cards。例:IBM System/360、DEC PDP-8。
- Generation 4 — PC Revolution(1970s–90s):microprocessor 将完整 CPU 放到单一芯片上,推动 personal computer、GUI、mouse 与 internet。Apple Macintosh(1984)是首批商业成功的 GUI PC。Moore’s Law:processing power 大约每两年翻倍。
- Generation 5 — Parallel Processing & The Web(1990s–2010s):parallel processing、multicore CPUs、World Wide Web;cloud computing、Big Data、mobile devices 兴起;internet 从文字导向发展为 multimedia 与 e-commerce。
- Generation 6 — Intelligence & Quantum(现在与未来):machine learning、deep neural networks、edge computing、quantum processors。Generative AI(如 ChatGPT、Claude、DALL-E、Sora)能够生成新的文字、图像与决策。Huang’s Law 指 GPU performance 约每年翻倍;frontier AI 依赖专用 AI chips,如 Google TPU、Apple Neural Engine、NVIDIA Blackwell。
3. Computer Hardware|计算机硬件
What are CPU, GPU, TPU, & NPU?
What are direct vs. indirect input devices?
Input Devices|输入设备
- Human Direct Input Devices:用户直接操作设备,例如 keyboard、mouse、trackball、touchpad、touch screen、stylus、joystick。
- Human Indirect Input Devices:设备从环境捕捉输入,例如 scanner、digital camera、microphone、biometric systems(fingerprint / facial recognition)、OCR reader、barcode scanner。
What are Inkjet vs. laser printers?
- Inkjet:喷墨;适合 colour photos;较慢;ink cartridge 每页成本较高。
- Laser:electrostatic process;速度快;每页成本较低;适合 high-volume documents。
Notes
Hardware 是根据 software 指令,对数据进行 input、process、output、storage 的电子组件,也就是计算机系统的“物理身体”。
Output Devices|输出设备
- Video:monitor、data projector、VR display、flexible display;resolution 以 pixels 衡量。
- Sound:audio speakers、headphones、headsets、smart speakers。
- Print:inkjet printer、laser printer、plotter、3D printer。
4. Computer Data|Bits, Bytes, and Beyond
所有数字数据都以 binary digits(0 和 1)存储与传输。
- Bit (b):一个 binary digit,0 或 1;最小数字数据单位。
- Byte (B):8 bits;可表示一个 character,如字母 “A”。
- Kilobyte (KB):1,024 bytes;例如简单 text file。
- Megabyte (MB):1,024 KB;例如 high-resolution photo。
- Gigabyte (GB):1,024 MB;例如 high-definition movie。
- Terabyte (TB):1,024 GB;例如现代 hard drive。
- Petabyte (PB):1,024 TB;例如大型 internet data centre storage。
- Storage vs. Communication Units:storage capacity 使用 Bytes(如 500 GB SSD);network / internet speed 使用 bits per second(如 1 Gbps)。1 Gbps = 每秒 10 亿 bits,不是 bytes。
5. Inside the Computer|Processing Hardware
Motherboard
主板是连接所有计算机组件的 main circuit board;所有组件必须直接或通过 port / slot 与之连接。
- Socket:放置 microprocessor。
- Memory Slots:安装 RAM modules。
- Buses / Data Channels:在组件之间传输数据的电子通道。
- Ports & Connectors:USB、HDMI、Ethernet、audio 等外设接口。
- Expansion Slots:可加入 graphics card、network card 等扩展卡。
Microprocessor(CPU)
CPU(Central Processing Unit)负责执行所有指令,是计算机操作核心。
- Data Flow:CPU 先将 programs / data 从 disk storage 载入 RAM,再通过 bus 将 RAM 中的 instructions 送入 CPU 执行。
- CPU Speed:以 Hertz(Hz)衡量;现代 CPU 多在 GHz,即每秒数十亿 cycles。
- Cache Memory:CPU 内部或附近的小型高速 memory,保存常用 instructions,减少回 RAM 读取的延迟。L1 最快且最小,L2 次之,L3 最大但三者中最慢;单位成本高,但对 performance 很重要。
为什么 L3 缓存是所有核心共享的,这会带来哪些性能优势或冲突?
- 最大的好处是让核心间能方便地共享数据,不用在各自的缓存里存重复的内容。 这样能动态分配资源,谁需要的多就用得多。
- 坏处是多个核心争抢访问会产生延迟,而且由于它更大更复杂,存取速度比不上专属缓存
L1 和 L2 作为每个核心的专属缓存,它们在处理指令时又是如何分工的?
- L1 通常会分为指令缓存和数据缓存,专门存放当前急需的代码和数据,拿取速度最快
- L2 容量大一些,作为 L1 的后备,存放稍后可能要用到的信息,在兼顾速度的同时提供更大缓冲。
既然多层次设计能提升性能,为什么不再细化分设计更多层级呢?
- 虽然增加更多层级理论上可行,但每增加一层都会带来递减的收益。
- 这样不仅会显著增加芯片设计的复杂度和制作成本,还会带来更多功耗和发热问题,因此现在的结构已经是最优平衡了。
This content type is not supported yet.
Primary Storage — RAM vs. ROM
为什么 RAM 被称为临时内存,而 ROM 是永久内存?
在电脑启动和运行程序时,RAM 和 ROM 分别扮演什么角色?
- 在电脑启动时, ROM 负责提供最基础的代码(像 BIOS)来唤醒硬件;
- 当系统运行后, RAM 则作为临时仓库,存放操作系统和当前应用的数据,供 CPU 随时高速调用。
| RAM — Random Access Memory | ROM — Read Only Memory |
|---|---|
| Working memory,保存正在使用的 OS、programs、data | 保存永久、内建的 instructions |
| Volatile:断电后内容消失 | Non-volatile:断电后仍保留 |
| 可新增或升级 RAM modules | 用于启动机器,运行 BIOS / UEFI firmware |
| RAM 太少会导致 memory swapping,性能下降 | 普通用户不能直接写入,通常由 manufacturer 设定 |
- Memory Swapping:当 RAM 无法容纳所有 active programs,OS 会持续在 RAM 与 hard drive 之间交换 data chunks,显著拖慢性能;解决方式通常是增加 RAM。
6. Secondary Storage|次级存储
Secondary storage 是 non-volatile、长期存储;断电后数据仍保留
- Category 1 — Magnetic Disk Drives(HDD)
- Fixed Disk Drives / Hard Drives:multi-platter design;数据记录在 tracks(同心圆)与 sectors(track 的分段)中。
- 容量高、速度中等,长期作为许多电脑的主要内部存储。
- Category 2 — Optical Disks
- CD:CD-ROM、CD-R、CD-RW;约 700 MB;red laser。
- DVD:DVD-ROM、DVD±R、DVD-RW;最高约 17 GB;比 CD 快;red laser。
- Blu-ray Disc(BD):dual layer 最高约 50 GB;blue-violet laser,数据密度更高;常用于 HD movies。
- Category 3 — Flash Memory
- USB drive:小型便携式存储,直接接 USB port。
- Flash Memory Card:如 digital camera 使用的 SD card。
- SSD(Solid State Drive):无 moving parts;比 HDD 更快、更耐用,但每 GB 成本更高。
- Category 4 — Cloud Storage
- 通过 internet 访问远端 server 的存储空间,由 third party 管理。
- 适合 mobile devices,可从不同设备随时访问。
- 便于 collaboration,多人可同时处理同一文件。
- 例:iCloud、Dropbox、Google Drive、OneDrive。
7. Networking Computers|计算机网络
Network 连接多个电脑,使其共享 data 与 resources
| LAN — Local Area Network | WAN — Wide Area Network |
|---|---|
| 范围小:home、office、building、campus | 范围大:countries、continents、global |
| 共享 data、printers、peripherals | 提供 internet、email、web browsing |
| Wired Ethernet / wireless Wi‑Fi | Cables、undersea fibre、cellular、satellite |
| 通常 privately owned;high speed、low latency | 可跨多个 owners,如 ISPs、telecom providers |
Client-Server Networks
多数组织使用 client-server model,由 dedicated server computers 向 clients 提供 resources / services。
- Thick Client:本地具有 processing power、storage、software,可较独立运行。
- Thin Client:processing / storage 主要依赖 server,本地能力很少。
- Server Computers:比 clients 更快、更大、更强;可分别承担 mail、file、web、application、database 等专用功能。
- Client Computers:用于查看与处理 information,并连接 servers 使用 web、email、database、printing。
Cloud-Based Networks
Cloud computing 将 server infrastructure 完全移到 off-site;客户不拥有相关 hardware。
- resources / services 托管在 remote servers,经 internet 随处访问。
- subscription-based:upfront investment 较低,但有持续费用。
- 例:Microsoft 365、Google Workspace、Amazon Web Services(AWS)。
8. Computer Software|计算机软件
Software 是告诉 hardware “做什么”的 instructions。由接近 hardware 到接近 user,可分为三层:
Layer 1 — Firmware 固件
Firmware 是永久嵌入 hardware device 的 software,位于 hardware 与 OS 之间。
- 工厂预装在 printer、router、modem、motherboard 等 hardware 中。
- Non-volatile,通常存于 ROM / Flash Memory。
- 将 higher-level OS commands 转为 low-level hardware operations;也负责 boot 并协调组件。
- BIOS(Basic Input/Output System):开机时运行,检查并初始化 RAM、video、keyboard、disk drives、printer 等 hardware,再加载 OS。
- 现代系统使用 UEFI(Unified Extensible Firmware Interface) 作为更新版 BIOS replacement。
- 相比传统 BIOS,UEFI 支持更大容量的硬盘、开机速度更快,并且拥有更好的安全性功能和支持现代化界面的扩展性。
- UEFI 之所以能提供更高级的功能,主要是因为它采用了模块化设计,能像小型操作系统一样,在开机初期就能加载驱动程序和扩展应用,直接与高级硬件互动,而不是局限于传统 BIOS 的硬编码。
- 现代 firmware 可更新;此过程称为 flashing the firmware。
- Firmware vs. Driver
- Firmware:存在 hardware device 内部,由 hardware manufacturer 预装。
- Driver:安装在 OS 上,作为 OS 与特定 hardware device 之间的 communication bridge;通常通过 OS update 或 device manager 更新。
Layer 2 — Operating System(OS)
OS 是主要 system software,控制所有 computer resources,并提供 applications 运行的平台。
- User Interface(UI):如 Windows desktop、macOS Finder。
- Processor(CPU)management:安排与执行 processes。
- Memory & Storage management:控制 programs 何时载入 RAM。
- Peripherals & Output management:通过 drivers 管理 printers、monitors 等设备。
- Software & Application Compatibility:apps 运行在 OS 之上,每个 app 针对特定 OS 开发。
- Desktop OS:Windows 11、macOS Sonoma、Linux(open source)。
- Mobile OS:iOS、Android。
- Compatibility Chain:Hardware → OS → Application。OS 针对特定 hardware architecture;application 又针对特定 OS。更换 OS 可能导致 apps 不兼容;更换 hardware 也可能需要新的 OS。
Windows OS Boot-Up Sequence
- Power On:Firmware(BIOS / UEFI)启动并检查 hardware。
- Load OS to RAM:Firmware 从 storage 读取 OS 并载入 RAM。
- OS Takes Control:OS 初始化 drivers 与 core services。
- System Ready:OS 开始管理 CPU、memory、devices,desktop 出现。
- App Execution:打开 app 时,OS 将其从 storage 载入 RAM;CPU 执行;output 发送到 display。
Layer 3 — Application Software
Application software 为 end users 执行特定任务,并始终运行在 OS 之上。
9. Software Ownership and Licensing|软件所有权与授权
| Proprietary Software(Closed Source) | Open-Source Software |
|---|---|
| 只发布 executable files,source code 隐藏 | source code 公开,可查看、修改、分发 |
| 用户购买 licence 使用;ownership 仍属于 developer | 通常无 licence fee,可依 GNU GPL 等 licence 使用与修改 |
| updates 由 vendor 控制 | community-driven,任何人可贡献改进 |
| 例:Microsoft Office 365、Adobe Creative Cloud、Windows 11 | 例:LibreOffice、Linux、VLC、Firefox |
| 收入:licence fees / subscriptions | 收入:support、services、enterprise versions |
10. Acquiring and Classifying Application Software
Three Ways to Acquire Application Software
- Buy Off-the-Shelf:可立即取得、成本较低、功能成熟;适合现有需求与软件高度吻合时。
- Buy Off-the-Shelf with Alterations:针对特定 industry / organization 做 customized;在成本与个性化之间折中,但比纯 off-the-shelf 更贵、更耗时。
- Custom-Developed / Tailor-Made:从零开始为单一组织的独特需求开发;成本与开发时间最高,但 fit 最佳,也能提供最大的 proprietary features 与 competitive advantage。
Three Types of Application Software
- Horizontal-Market Application Software:跨多个 industries 使用的 general-purpose software。例:Microsoft 365 / Google Workspace、QuickBooks、Salesforce CRM、graphics software、web browser。
- Vertical-Market Application Software:针对一个 specific industry 的需求,通常是 customized package。例:healthcare 的 EHR、education 的 Canvas LMS、manufacturing 的 supply chain management、finance 的 FinTech。
- One-of-a-Kind Application Software:为单一 organization 的 unique requirement custom-built;成本与开发时间较高。例:Canada Revenue Agency tax software、military / aerospace systems、proprietary corporate systems。
- Software Type vs. Software Source
- Horizontal → 通常 off-the-shelf。
- Vertical → off-the-shelf 或 off-the-shelf with alterations。
- One-of-a-kind → custom-developed。
Gen AI & This Topic|补充内容(Exam A 不考)
- Gen AI 需要不同于普通 laptop 的 hardware:标准 CPU 通常有 8–64 个强大的 sequential cores;neural network training 需要对大量数值并行进行 matrix math,因此依赖含 10,000+ mini-cores 的 GPU。课程材料举例:训练 GPT‑4 需要约 25,000 张 NVIDIA GPUs 连续运行 90 天,耗电约 50 GWh。
- Gen AI 正嵌入 software 各层:
- Application layer:Microsoft 365 Copilot、Google Gemini in Workspace、Adobe Firefly。
- OS layer:Windows 11 Copilot、Apple Intelligence。
- Hardware layer:GPU / NPU / TPU。
- Gen AI 正改变 Input / Output:voice input、AI transcription、computer vision 等输入方式增长;输出端可生成 3D prosthetic designs 并即时打印。许多任务的完整 Input → Process → Output cycle 可在 10 秒内完成。
11. What to Know for the Exam|考试重点
Exam A 主要题型:True / False、Multiple Choice、Fill-in-the-Blank。上面的 Gen AI enrichment 不在考试范围内。
T/F & Multiple Choice
- 六个 computing generations 及其 defining technologies:vacuum tubes → transistors → ICs → microprocessors → parallel processing / Web → intelligence / quantum。
- 四类 hardware:Input、Process(CPU, RAM)、Output、Storage;及各类例子。
- Direct vs. indirect input devices。
- Inkjet vs. laser printers:photos vs. documents、ink cost、speed。
- Data units:bit、byte、KB、MB、GB、TB、PB;从 text → photo → movie → hard drive → data centre 的规模。
- RAM vs. ROM:volatile / non-volatile、working memory / permanent instructions、upgradeable / fixed。
- Secondary storage:magnetic、optical、flash、cloud 及例子。
- LAN vs. WAN:geographic scope、wired / wireless、典型用途。
- Client-server:thick client、thin client、server roles。
- Cloud computing:subscription model、no owned infrastructure、remote access。
- Firmware:定义、non-volatile、BIOS / UEFI 在 boot-up 中的作用、与 driver 的区别。
- OS 的五个功能:UI、CPU、memory / storage、peripherals、app compatibility。
- Compatibility chain:Hardware → OS → Application。
- Proprietary vs. open-source:source code、licensing、revenue model。
- 三种 software acquisition:off-the-shelf、off-the-shelf with alterations、custom-developed。
- 三种 application software:horizontal-market、vertical-market、one-of-a-kind。
Fill-in-the-Blank
- 8 bits = 1 byte
- RAM 是 volatile memory;ROM 是 non-volatile memory
- LAN 覆盖 local area;WAN 覆盖 wide area
- Horizontal-market software 服务 many industries;vertical-market software 面向 specific industries
- Exam A 的 FIB 每题 exactly two blanks,共 2 分,每空 1 分;blank order matters。
12. Key Terms|核心术语
| Term | Definition |
|---|---|
| Hardware | 依据 software instructions,对 data 进行 input、process、output、storage 的电子组件。 |
| Input Device | 捕获要输入 computer system 的 data。分为 direct input(keyboard、mouse)与 indirect input(scanner、camera、biometrics)。 |
| Output Device | 向 users 呈现 processed data。类别包括 video(monitors)、sound(speakers)、print(printers)。 |
| CPU(Central Processing Unit) | 执行所有 instructions 的主要 processing chip;速度以 Hertz(Hz)衡量。含有 cache memory,用于快速访问 instructions。 |
| Cache Memory | CPU 内部或附近的小型高速 memory,保存 frequently used instructions,以加快 processing。分为 L1、L2、L3 三层。 |
| Motherboard | 连接所有 computer components 的 main circuit board,包括 CPU socket、RAM slots、buses、ports、expansion slots。 |
| RAM(Random Access Memory) | Volatile working memory,保存当前使用中的 OS、programs、data。断电后内容丢失;可以升级。 |
| ROM(Read Only Memory) | Non-volatile memory,保存 permanent startup instructions。断电后内容不会丢失;用于 boot the machine。 |
| Bit | 最小的 digital data 单位,即一个 binary digit:0 或 1。 |
| Byte | 8 bits;可表示一个 character。是 digital measurement 的基础单位(KB、MB、GB、TB、PB)。 |
| SSD(Solid State Drive) | 基于 flash memory 的 secondary storage device,无 moving parts;比 magnetic HDD 更快、更耐用。 |
| HDD(Hard Disk Drive) | Magnetic secondary storage device,在旋转 platters 上以 concentric tracks 与 sectors 记录 data;non-volatile。 |
| LAN(Local Area Network) | 覆盖有限区域(home、office、building、campus)的 network,通过 wired Ethernet 或 wireless Wi‑Fi 共享 data 与 peripherals。 |
| WAN(Wide Area Network) | 覆盖大范围地理区域(countries、continents、global)的 network,通过 cables 或 wireless(cellular / satellite)提供 internet access。 |
| Client-Server Network | Dedicated server computers 向 client computers 提供 resources 与 services 的 network model。Servers 比 clients 更快、更强大。 |
| Thick Client | 具有本地 processing power、storage、software 的 client computer;可独立于 server 运行。 |
| Thin Client | 依赖 server 进行 processing 与 storage 的 client computer;本地能力很少。 |
| Cloud Computing | Computing resources 与 services 托管在 remote servers,并通过 internet 以 subscription basis 访问。Customer 不拥有 infrastructure。 |
| Firmware | 永久嵌入 hardware devices 的 software(存于 ROM / flash),位于 hardware 与 OS 之间,充当 middleman;non-volatile。 |
| BIOS / UEFI | 开机时运行的 firmware,用于检查并初始化 hardware components(RAM、video、keyboard、disk drives)并加载 OS。UEFI 是 BIOS 的现代替代方案。BIOS = Basic Input/Output System;UEFI = Unified Extensible Firmware Interface。 |
| Driver | 安装在 OS 上的软件,在 OS 与特定 hardware device 之间转换 high-level commands。例:printer driver、graphics driver。 |
| Operating System(OS) | 控制所有 computer resources 的主要 system software,包括 UI、CPU、memory、peripherals、application compatibility。例:Windows 11、macOS、Linux。 |
| Proprietary Software | Source code 隐藏;users 购买 licence 使用,ownership 仍属于 developer。例:Microsoft Office、Adobe CC。 |
| Open-Source Software | Source code 公开,可自由使用、修改、分发。例:LibreOffice、Linux、Firefox。 |
| Horizontal-Market Software | 可跨多个 industries 使用的 application software。例:Microsoft 365、QuickBooks、Salesforce CRM。 |
| Vertical-Market Software | 针对某一 specific industry 设计的 application software。例:Electronic Health Records(healthcare)、Canvas LMS(education)。 |
| One-of-a-Kind Software | 为单一 organization 的 unique requirements custom-built 的 application software。例:Canada Revenue Agency tax software。 |