Threads and Multithreading

2025. 8. 11. 23:44·Computer Science/Operating System

 

 

What is a Thread?

  • A thread is the smallest unit of execution within a process.
  • A single process can have multiple threads.
  • Unlike processes, which each have their own code, data, and heap,threads share the code, data, and heap of their process. → This allows multiple tasks to run concurrently within a single process.

Multithreading

  • Multithreading is a technique where multiple threads within a process share the workload.
  • Since threads share memory and resources, it is more efficient in terms of memory usage, faster than inter-process communication, and generally provides better performance.

 

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

Structure of CPU scheduling algorithm and each algorithm  (0) 2025.08.29
Shared resources, Critical sections, and Deadlock  (0) 2025.08.23
PCB & Context Switching  (0) 2025.08.03
Process  (0) 2025.07.30
How memory manages data  (0) 2025.07.27
'Computer Science/Operating System' 카테고리의 다른 글
  • Structure of CPU scheduling algorithm and each algorithm
  • Shared resources, Critical sections, and Deadlock
  • PCB & Context Switching
  • Process
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
  • 블로그 메뉴

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

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

  • 인기 글

  • 태그

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

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
JTB
Threads and Multithreading
상단으로

티스토리툴바