Process in Operating System Last Updated : 25 Aug, 2025 Comments Improve Suggest changes Like Article Like Report A process is a program in execution. For example, when we write a program in C or C++ and compile it, the compiler creates binary code. The original code and binary code are both programs. When we actually run the binary code, it becomes a process. A process is an 'active' entity instead of a program, which is considered a 'passive' entity. A single program can create many processes when run multiple times; for example, when we open a .exe or binary file multiple times, multiple instances begin (multiple processes are created). .How Does a Process Look Like in Memory? A process in memory is divided into several distinct sections, each serving a different purpose. Here's how a process typically looks in memory.Process structureText Section: A text or code segment contains executable instructions. It is typically a read only sectionStack: The stack contains temporary data, such as function parameters, returns addresses, and local variables. Data Section: Contains the global variable. Heap Section: Dynamically memory allocated to process during its run time.Attributes of a ProcessA process has several important attributes that help the operating system manage and control it. These attributes are stored in a structure called the Process Control Block (PCB) (sometimes called a task control block). The PCB keeps all the key information about the process, including:Process ID (PID): A unique number assigned to each process so the operating system can identify it.Process State: This shows the current status of the process, like whether it is running, waiting, or ready to execute.Priority and other CPU Scheduling Information: Data that helps the operating system decide which process should run next, like priority levels and pointers to scheduling queues.I/O Information: Information about input/output devices the process is using.File Descriptors: Information about open files files and network connections.Accounting Information: Tracks how long the process has run, the amount of CPU time used, and other resource usage data.Memory Management Information: Details about the memory space allocated to the process, including where it is loaded in memory and the structure of its memory layout (stack, heap, etc.).These attributes in the PCB help the operating system control, schedule, and manage each process effectively.Next Read:States of ProcessProcess Table and Process Control BlockCPU Scheduling CriteriaProcess Schedulers in OS Comment More infoAdvertise with us K kartik Follow Improve Article Tags : Operating Systems Process Management Explore BasicsIntroduction to Operating System8 min readTypes of Operating Systems9 min readKernel in Operating System9 min readSystem Call9 min readWhat happens when we turn on computer?6 min readProcess SchedulingProcess in Operating System2 min readIntroduction of Process Management8 min readProcess Schedulers in Operating System7 min readCPU Scheduling in Operating Systems8 min readProcess SynchronizationIntroduction to Process Synchronization4 min readSolutions to Process Synchronization Problems4 min readPriority Inversion in Operating Systems3 min readClassical IPC Problems2 min readDeadlockIntroduction of Deadlock in Operating System3 min readHandling Deadlocks2 min readStarvation and Livelock3 min readResource Allocation Techniques for Processes2 min readProgram for Deadlock Free Condition in Operating System6 min readMultithreadingThread in Operating System4 min readProcess-Based and Thread-Based Multitasking2 min readMulti Threading Models in Process Management6 min readRemote Procedure Call (RPC) in Operating System5 min readMemory ManagementIntroduction to memory and memory units4 min readMemory Management in Operating System5 min readBuddy System - Memory Allocation Technique4 min readOverlays in Memory Management4 min readVirtual Memory in Operating System14 min readPage Replacement Algorithms in Operating Systems7 min readKernel & System-Level ConceptsAllocating kernel memory (buddy system and slab system)9 min readMemory Interleaving3 min readOperating system based Virtualization5 min readDisk ManagementFile Systems in Operating System9 min readImplementing Directory Management using Shell Script3 min readSecondary Memory7 min readDisk Scheduling Algorithms12 min readDifference between Spooling and Buffering5 min readImportant LinksLast Minute Notes â Operating Systems15+ min readOperating System Interview Questions15+ min read Like