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
  • 블로그 메뉴

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

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

  • 인기 글

  • 태그

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

  • 최근 글

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

티스토리툴바