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 OS BasicsWhat is an Operating System?5 min readTypes of Operating Systems9 min readCommonly Used Operating System9 min readOperating System Services5 min readOperating Systems Structures9 min readBooting and Dual Booting of Operating System6 min readSystem Call9 min readProcess & ThreadsIntroduction of Process Management8 min readProcess Table and Process Control Block (PCB)6 min readProcess Schedulers in Operating System7 min readContext Switching in Operating System3 min readThread in Operating System4 min readCPU SchedulingCPU Scheduling in Operating Systems8 min readPreemptive and Non-Preemptive Scheduling3 min readMultiple-Processor Scheduling in Operating System8 min readThread Scheduling7 min readDeadlockIntroduction of Deadlock in Operating System3 min readBanker's Algorithm in Operating System8 min readWait For Graph Deadlock Detection in Distributed System5 min readDeadlock Prevention And Avoidance5 min readDeadlock Detection And Recovery6 min readDeadlock Ignorance in Operating System5 min readMemory & Disk ManagementMemory Management in Operating System7 min readFixed (or static) Partitioning in Operating System8 min readVariable (or Dynamic) Partitioning in Operating System4 min readPaging in Operating System8 min readSegmentation in Operating System4 min readPage Replacement Algorithms in Operating Systems7 min readFile Systems in Operating System8 min readAdvanced OSMultithreading in OS - Different Models4 min readCompaction in Operating System3 min readBelady's Anomaly in Page Replacement Algorithms11 min readTechniques to handle Thrashing6 min readFree Space Management in Operating System7 min readRAID (Redundant Arrays of Independent Disks)13 min readPracticeLast Minute Notes â Operating Systems15+ min readOperating System Interview Questions15+ min readOperating Systems - GATE CSE Previous Year Questions2 min read Like