프로세스

자체 메모리와 리소스를 가진 실행 중인 프로그램.

A process is an active entity in an operating system. It consists of the program code, its current activity (tracked by the program counter), and a set of resources (memory address space, file descriptors, etc.). Processes are isolated from each other by the OS to ensure system stability and security.

        graph LR
  Center["프로세스"]:::main
  Rel_multiprocessing["multiprocessing"]:::related -.-> Center
  click Rel_multiprocessing "/terms/multiprocessing"
  Rel_algorithms["algorithms"]:::related -.-> Center
  click Rel_algorithms "/terms/algorithms"
  Rel_pipelining["pipelining"]:::related -.-> Center
  click Rel_pipelining "/terms/pipelining"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧠 지식 테스트

1 / 1

🧒 5살도 이해할 수 있게 설명

프로그램은 종이에 적힌 레시피와 같습니다—그냥 거기 있을 뿐입니다. 실제로 레시피대로 요리할 때, 각 단계를 따라가면 그것이 프로세스입니다. 주방(컴퓨터)에서 여러 사람이 동시에 다른 레시피를 요리할 수 있습니다!

🤓 Expert Deep Dive

fork-exec 모델(UNIX): fork()는 부모를 복제, exec()는 이미지를 교체. Copy-on-write는 fork()를 최적화. IPC: 파이프, 메시지 큐, 공유 메모리, 소켓.

📚 출처