Process

2025. 7. 30. 23:14·Computer Science/Operating System

A process is a program that is currently being executed on a computer.

It is almost the same as a task, which is the unit of work scheduled by the CPU.

When a program is loaded into memory, it becomes an instance of a process,

and then the CPU executes it according to the operating system's scheduler.

 


Memory Structure of a Process

When the OS allocates memory to a process, it follows this structure:

 


Stack and Heap (Dynamic Allocation)

Allocated at runtime.

  • Stack: It stores local variables, parameters, and function call information, growing and shrinking as functions are called and return.
  • Heap: It stores dynamically allocated data, such as objects and arrays.

Data Segment and Code Segment (Static Allocation)

Allocated at compile time.

  • Data Segment:
    • BSS Segment: Holds global/static/const variables initialized to 0 or uninitialized.
    • Data Segment: Holds global/static/const variables initialized to non-zero values.
  • Code Segment: Contains the program’s executable code.

 

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

Threads and Multithreading  (0) 2025.08.11
PCB & Context Switching  (0) 2025.08.03
How memory manages data  (0) 2025.07.27
Memory  (0) 2025.07.25
Components of a computer  (0) 2025.07.22
'Computer Science/Operating System' 카테고리의 다른 글
  • Threads and Multithreading
  • PCB & Context Switching
  • How memory manages data
  • Memory
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
  • 블로그 메뉴

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

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

  • 인기 글

  • 태그

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

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
JTB
Process
상단으로

티스토리툴바