SlideShare a Scribd company logo
Operating system
 A process is basically a program in execution.
The execution of a process must progress in a
sequential fashion.
 A process is defined as an entity which
represents the basic unit of work to be
implemented in the system. To put it in
simple terms, we write our computer
programs in a text file and when we execute
this program, it becomes a process which
performs all the tasks mentioned in the
program.
 When a program is loaded into the memory
and it becomes a process, it can be divided
into four sections ─ stack, heap, text and
data. The following image shows a simplified
layout of a process inside main memory −
Operating system
 A program is a piece of code which may be a single line or millions
of lines. A computer program is usually written by a computer
programmer in a programming language. For example, here is a
simple program written in C programming language −
#include <stdio.h>
int main()
{
printf("Hello, World! n");
return 0;
}
 A computer program is a collection of instructions that performs a
specific task when executed by a computer. When we compare a
program with a process, we can conclude that a process is a
dynamic instance of a computer program.
 A part of a computer program that performs a well-defined task is
known as an algorithm. A collection of computer programs,
libraries and related data are referred to as a software.
 When a process executes, it passes through
different states. These stages may differ in
different operating systems, and the names of
these states are also not standardized.
 In general, a process can have one of the
following five states at a time.
Operating system
 A Process Control Block is a data structure
maintained by the Operating System for every
process. The PCB is identified by an integer
process ID (PID). A PCB keeps all the
information needed to keep track of a process
as listed below in the table −
Operating system
Operating system
 The architecture of a PCB is completely
dependent on Operating System and may contain
different information in different operating
systems. Here is a simplified diagram of a PCB −
 The PCB is maintained for a process throughout
its lifetime, and is deleted once the process
terminates.

More Related Content

PPTX
C language header files
PDF
File_Management_in_C
PPT
File handling in c
PPTX
basics of file handling
PPTX
File Management in C
PDF
C++ tokens and expressions
PPTX
File Handling and Command Line Arguments in C
C language header files
File_Management_in_C
File handling in c
basics of file handling
File Management in C
C++ tokens and expressions
File Handling and Command Line Arguments in C

What's hot (20)

PPTX
Stream classes in C++
PPT
File handling in C++
PPTX
Presention programming
PDF
Basics of files and its functions with example
PPTX
[Java] #7 - Input & Output Stream
PPT
File handling
PPT
17 files and streams
PPT
working file handling in cpp overview
PDF
Arrays 2 Dimensional Unit 2 Part 1.pdf
PPT
Files in c++ ppt
PPT
Mesics lecture files in 'c'
PDF
Python-files
PPT
Data file handling
PPTX
Files in php
PDF
Python - File operations & Data parsing
DOCX
source code which create file and write into it
PPTX
Data file handling
Stream classes in C++
File handling in C++
Presention programming
Basics of files and its functions with example
[Java] #7 - Input & Output Stream
File handling
17 files and streams
working file handling in cpp overview
Arrays 2 Dimensional Unit 2 Part 1.pdf
Files in c++ ppt
Mesics lecture files in 'c'
Python-files
Data file handling
Files in php
Python - File operations & Data parsing
source code which create file and write into it
Data file handling
Ad

Similar to Operating system (20)

PDF
CH-1SYSTEM PROGARMMING (1).pdf programing
PDF
Clifford sugerman
DOCX
Computers in management
PDF
UNIT-2-Process-Management.pdf
PDF
PPTX
Software - Introduction
PPTX
programming for problem solving-1 unit -1 ppt.pptx
PDF
COMPUTER ORGNAIZATION NOTES
DOCX
Introduction to Programming.docx
PPTX
Computer education presentation - ARCH 383
PDF
OS-Process Management
PDF
System programming note
PDF
Software
PDF
Vskills c developer sample material
PPTX
Computer
PDF
Vskills c++ developer sample material
PPTX
Steps for c program execution
PDF
UNIT-IQA.pdf.............................
PDF
Introduction of computer and components of computer or block diagram of computer
PPTX
UNIT 2 ECSE-2.pptx
CH-1SYSTEM PROGARMMING (1).pdf programing
Clifford sugerman
Computers in management
UNIT-2-Process-Management.pdf
Software - Introduction
programming for problem solving-1 unit -1 ppt.pptx
COMPUTER ORGNAIZATION NOTES
Introduction to Programming.docx
Computer education presentation - ARCH 383
OS-Process Management
System programming note
Software
Vskills c developer sample material
Computer
Vskills c++ developer sample material
Steps for c program execution
UNIT-IQA.pdf.............................
Introduction of computer and components of computer or block diagram of computer
UNIT 2 ECSE-2.pptx
Ad

More from marar hina (9)

PPTX
Operating system
PPTX
C language Processors
PPTX
C language variables
PPTX
C language data types
PPTX
C language operators
PPTX
C language (more)
PPTX
Attendence system
PPTX
Classification of human faces and non faces using machine learning techniques
PPTX
C language
Operating system
C language Processors
C language variables
C language data types
C language operators
C language (more)
Attendence system
Classification of human faces and non faces using machine learning techniques
C language

Recently uploaded (20)

PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Artificial Intelligence
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
737-MAX_SRG.pdf student reference guides
DOCX
573137875-Attendance-Management-System-original
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Construction Project Organization Group 2.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Current and future trends in Computer Vision.pptx
Artificial Intelligence
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Operating System & Kernel Study Guide-1 - converted.pdf
737-MAX_SRG.pdf student reference guides
573137875-Attendance-Management-System-original
Model Code of Practice - Construction Work - 21102022 .pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
R24 SURVEYING LAB MANUAL for civil enggi
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Construction Project Organization Group 2.pptx
additive manufacturing of ss316l using mig welding
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Foundation to blockchain - A guide to Blockchain Tech

Operating system

  • 2.  A process is basically a program in execution. The execution of a process must progress in a sequential fashion.  A process is defined as an entity which represents the basic unit of work to be implemented in the system. To put it in simple terms, we write our computer programs in a text file and when we execute this program, it becomes a process which performs all the tasks mentioned in the program.
  • 3.  When a program is loaded into the memory and it becomes a process, it can be divided into four sections ─ stack, heap, text and data. The following image shows a simplified layout of a process inside main memory −
  • 5.  A program is a piece of code which may be a single line or millions of lines. A computer program is usually written by a computer programmer in a programming language. For example, here is a simple program written in C programming language − #include <stdio.h> int main() { printf("Hello, World! n"); return 0; }  A computer program is a collection of instructions that performs a specific task when executed by a computer. When we compare a program with a process, we can conclude that a process is a dynamic instance of a computer program.  A part of a computer program that performs a well-defined task is known as an algorithm. A collection of computer programs, libraries and related data are referred to as a software.
  • 6.  When a process executes, it passes through different states. These stages may differ in different operating systems, and the names of these states are also not standardized.  In general, a process can have one of the following five states at a time.
  • 8.  A Process Control Block is a data structure maintained by the Operating System for every process. The PCB is identified by an integer process ID (PID). A PCB keeps all the information needed to keep track of a process as listed below in the table −
  • 11.  The architecture of a PCB is completely dependent on Operating System and may contain different information in different operating systems. Here is a simplified diagram of a PCB −  The PCB is maintained for a process throughout its lifetime, and is deleted once the process terminates.