Components of a computer

2025. 7. 22. 22:57·Computer Science/Operating System

 

Computer Architecture

A computer consists of the following components:

  1. CPU (Central Processing Unit)
  2. DMA Controller (Direct Memory Access)
  3. Memory (Normally RAM, Random Access Memory)
  4. Timer
  5. Device Controller

 

 

 


CPU

The CPU (Central Processing Unit) is a computer component structured as follows:

It is a worker that simply interprets and executes instructions stored in memory, triggered by *interrupts.

 

When the kernel of the operating system (the manager) loads a program into memory and turns it into a process, the CPU (the worker) processes it.

 

  1. Arithmetic Logic Unit (ALU)_산술논리연산장치 - The ALU (Arithmetic Logic Unit) is a digital circuit that performs arithmetic operations (like addition and subtraction) and logical operations (like XOR and AND) between two numbers.
  2. Control Unit (CU)_제어장치 - The Control Unit (CU) is a part of the CPU that directs the operations of the processor. It controls communication between input/output devices, reads and interprets instructions, and determines the sequence of data processing.
  3. Registers - Registers are very fast, temporary storage units inside the CPU. Since they are directly connected to the CPU, their operation speed is tens to hundreds of times faster than main memory. Because the CPU has no inherent way to store data, it uses registers to transfer and hold data temporarily.

 

  1. The Control Unit (CU) loads the value to be computed from memory and also loads it into the registers.
  2. The Control Unit instructs the Arithmetic Logic Unit (ALU) to perform calculations on the values stored in the registers.
  3. The Control Unit stores the computed result back from the register into memory.

 

*Interrupt

An interrupt refers to temporarily pausing the CPU when a specific signal is received.

Interrupts have priorities and are executed based on their priority.

There are two main types of interrupts: hardware interrupt and software interrupt.

  • Hardware Interrupt
    • Triggered by I/O devices such as when connecting a keyboard or mouse.
    • These interrupts are generated by hardware signals from external devices.
  • Software Interrupt
    • Also called a trap.
    • Triggered when a process calls the system, often due to a process error or a specific system call.

 

DMA (Direct Memory Access) Controller

  • Manages data transfer between memory and I/O devices without involving the CPU, thereby improving system performance.
  • It is a hardware device that allows I/O devices to access memory directly.
  • Acts as an assistant to the CPU by offloading the heavy load of frequent interrupt requests.
  • Prevents the CPU and the DMA controller from working on the same task simultaneously.

Memory

  • Memory refers to a device in electronic circuits that stores data, state, or instructions.
  • Commonly refers to RAM (Random Access Memory).
  • The CPU handles computation, while memory handles storage.

Timer

  • The timer sets a time limit on certain programs, ensuring that tasks complete within a specified time frame.
  • Used to prevent long-running programs from monopolizing resources.

Device Controller

  • The device controller is essentially a small CPU dedicated to managing I/O devices connected to the computer.

'Computer Science > Operating System' 카테고리의 다른 글

Process  (0) 2025.07.30
How memory manages data  (0) 2025.07.27
Memory  (0) 2025.07.25
Structure of the Operating System  (0) 2025.07.19
What is an operating system?  (0) 2025.07.16
'Computer Science/Operating System' 카테고리의 다른 글
  • How memory manages data
  • Memory
  • Structure of the Operating System
  • What is an operating system?
JTB
JTB
웹/앱 개발 정보를 공유하고 있습니다.
  • JTB
    JTechBlog
    JTB
  • 전체
    오늘
    어제
    • All About Programming;) N
      • Computer Science
        • Terminology and Concepts
        • Network
        • Operating System
        • Database
        • Data Structure
      • Frontend
        • Javascript Essentials
        • Perfomance Optimization
        • JS Patterns
        • Next.js
        • Flutter
      • Backend
        • Node.js
      • DevOps
        • Docker & Kubernetes
      • Coding Test N
        • LeetCode N
        • Programmers
      • Tech Books & Lectures
        • Javascript_Modern JS Deep d..
        • Network_IT 엔지니어를 위한 네트워크 입문
      • Projects
        • PolyLingo_2025
        • Build Your Body_2024
        • JStargram_2021
        • Covid19 Tracker_2021
        • JPortfolio_2021
      • BootCamp_Codestates
        • TIL
        • TILookCloser
        • Pre Tech Blog
        • IM Tech Blog
        • Daily Issues and DeBugging
        • First Project
        • Final Project
        • Sprint Review
        • Good to Know
        • Socrative Review
        • HTML & CSS
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 글쓰기
    • 관리
  • 공지사항

  • 인기 글

  • 태그

    Operating System
    이벤트
    How memory manage data
    testing
    structure of os
    커리어
    indie hacker
    Binary Tree BFS
    자바스크립트
    CPU scheduling algorithm
    polylingo
    자바스크립트 딥다이브
    need a database
    Shared resources
    Time complexity and Space complexity
    프론트엔드 성능 최적화 가이드
    TCP/IP
    Data Structure
    js pattern
    VoiceJournal
    Network
    JavaScript
    DOM
    database
    딥다이브
    모던 자바스크립트 Deep Dive
    스코프
    Threads and Multithreading
    mobile app
    leetcode
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
JTB
Components of a computer
상단으로

티스토리툴바