1,580 views
0 votes
0 votes
Is the PCB created and reside in Secondary Memory until Long Term Scheduler picks up a process or It is created in Main Memory?

1 Answer

0 votes
0 votes

@ROT

A process control block (PCB) is a data structure used by computer operating systems to store all the information about a process...

It is also known as a process descriptor. When a process is created (initialized or installed), the operating system creates a corresponding process control block....

This specifies the process state i.e. new, ready, running, waiting or terminated....

Process Scheduling Queues ::

Process Scheduling Queues help you to maintain a distinct queue for each and every process states and PCBs. All the process of the same execution state are placed in the same queue...

Therefore, whenever the state of a process is modified, its PCB needs to be unlinked from its existing queue, which moves back to the new state queue....

While creating a process the operating system performs several operations. To identify the processes, it assigns a process identification number (PID) to each process. As the operating system supports multi-programming, it needs to keep track of all the processes....

For this task, the process control block (PCB) is used to track the process’s execution status. Each block of memory contains information about the process state, program counter, stack pointer, status of opened files, scheduling algorithms, etc...

All these information is required and must be saved when the process is switched from one state to another. When the process makes a transition from one state to another, the operating system must update information in the process’s PCB...

A process control block (PCB) contains information about the process, i.e. registers, quantum, priority, etc. The process table is an array of PCB’s, that means logically contains a PCB for all of the current processes in the system....

1. Job queue – It helps you to store all the processes in the system....

2. Ready queue – This type of queue helps you to set every process residing in the main memory, which is ready and waiting to execute....

3. Device queues – It is a process that is blocked because of the absence of an I/O device.....

 

1. https://en.wikipedia.org/wiki/Process_control_block#Structure

 

Related questions

0 votes
0 votes
1 answer
2
CJ147 asked Oct 11, 2018
597 views
The Following code has output Gate2019 #include <stdio.h char* fun(){ char* temp = "Gate2019"; return temp; } int main(void) { // your code goes here puts(fun()); return...