# Processes and Threads: Process Layout and Process Control Block

## Metadata
- Author: [[codecademy.com]]
- Full Title: Processes and Threads: Process Layout and Process Control Block
- Category: #articles
- Summary: A process’s memory layout has four main sections and the OS keeps a Process Control Block (PCB) to manage it. The PCB stores things like resources, permissions, priority, program counter, and memory-management info. When a process starts another, they form a parent-child relationship and often share resources while the parent may wait for the child to finish.
- URL: https://www.codecademy.com/courses/fundamentals-of-operating-systems/lessons/os-processes-and-threads/exercises/process-layout-and-process-control-block
## Highlights
- Additionally, when one process launches another, the original enters a parent-child relationship with the newly-launched process that shares much of the above data. For example, when an existing music player process starts a new process for scanning the user’s music library, both of these processes generally share the same system resources and permissions. Parent processes usually also wait for their children to complete before terminating themselves, unless the child was created specifically to run independently in the background. ([View Highlight](https://read.readwise.io/read/01k6rcab1r76bkpdw95mfftf0g))