Transcript for:
Process Management Overview

hello everyone the next topic in operating system tutorial is process management process management is one of the function of operating system so before I start what Process Management is let's discuss some important terms related to this ok so this is a CPU ok here is the main memory and here is the secondary memory ok like this okay so if I want to write a program hello world in C++ I have write a program hello world okay hello world program in C++ C++ program I have saved this program in the secondary memory and let's say this programs name is p1 I have said save this hello world program in sight this secondary memory and let's say the program's name is p1 I have made another program let's say p2 I have made another program P 3 P 4 and so on and all these programs I have made will be saved in the secondary memory so what is this known as program ok if I want to execute this particular program I it has to reside in the main memory ok CP will execute my program p1 so for the execution this program p1 should be recited in the main memory so what operating system does is move this program even inside the main memory like this ok once this program moved inside the main memory this is known as process the same program which is moved from the secondary memory to main memory is now known as process it is not known as program it is now known as process okay now CPU picks this process and executed it ok so when the program is inside the secondary memory it is known as program once it is moved to the process it is known as once it is move to the second second from secondary memory to main memory this program is now known as process so program under execution is nothing but process ok so actually operating system manages all these processes inside the main memory ok say say suppose I have moved this program P 2 then P 3 so all these programs want we want these programs to execute by the CPU CPU will execute one process at a time because he pays only one so one process at a time it will execute so all these processes are in the waiting state are ready for execution and they are waiting for the CP they all want to access the CPU and CPU is only one and they all want to access the CPU so one by one they will get the CPU so operating system manages all the processes who will get the CPU first who will get the input/output resources all this is managed by the operating system so this all comes under process management okay so main memory met all the processes are waiting for this CPU DK Thomas Hamada PASOK ready queue Kirkuk data structure order a DQ in this ready queue all the processes are waiting for the CPU because this is a data structure QQ means they are all waiting in a line one by one p1 p2 p3 they are all waiting in the line for DCP ticket these are the programs if we want to execute this these programs they has to reside in the main memory once they are reside in the main memory they are known as process and CPU picks up one by one each process for the execution and these process are in the waiting state they are ready for execution and they are waiting inside the ready queue they are all waiting in outline therefore it is known as q q is nothing but a data structure so all this is managed by the operating system this is just a gist of of process management we will discuss it in detail but I hope this is clear now what is a program what is a process and how CPU picks the process from a main memory for the execution okay so the formal definition of a process is the process the program under execution is called as process ticket this is a program p1 when it moves inside the main memory now this is known this is a program once it is moved from the secondary memory to main memory it is now a process and now CPU picks this process and executed okay so process has various attributes like human we have our other ID our address like process also they have attributes like process ID each process has its own unique ID process state means it is under which state new state ready State I will explain this process State in next tutorial so process statement is cut not currently it is in ready queue or it is executing the CPU what actually it is inside it is in the current state okay program counter means you have a program you have a process ok a big program here to scan the board sorry instructions only TK this is my program p1 and it has lot of instructions and each instructor instruction has a address ok the CPU picks one instruction executed it then picks up the next instruction then executed it so each instruction has its own address so the program counter stores the address of the next instruction CPU will find out the address of the next instruction from the program counter together next is the priority priority means operating system sometimes X assigns the priority to each process like it is a high high priority process so speaker CPU first picks up that particular process which has higher priority ok so this also I will discuss in CPI dueling algorithm general-purpose registers means what kind of registers a particular process holds list of open files means a what what are the files it is used the particular process is using but the number of files the particular process is using list of open devices means what kind of devices the particular process is using for example a particular process is currently using a printer so it is it is a printer it is using printer then the protection information in this it is if any case mechanism so protection information is if a process is using some protection it is that information is present inside maintained inside this protection information attribute so these are some attributes of a particular process now Whoville picks up this program - from the secondary memory - main memory and who will picks up this process who will assign the CPU to a particular process this is all done by scheduler CPU schedulers so what are the vertical errs and what other types of schedulers we will discuss in the next tutorial I hope the term process and that types of attributes of the process is clear now I will discuss the types of schedulers in the next vid tutorial thank you so much please like and subscribe my video the channel thank you so much