Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The job queue and the ready queue

What is the difference between the job queue and the ready queue and are they mutually exclusive?

The ready queue contains all the process stored in main memory, awaiting execution or simply all the processes that are ready to execute - which can be in the job queue?

When a new process is created which queue does it go to first?

like image 316
Gary In Avatar asked Apr 28 '15 14:04

Gary In


People also ask

Is job queue and ready queue same?

Job queue contains the set of all processes in the system and ready queue contains the set of all processes residing in main memory and awaiting execution. Job queue consists of all the processes where ready queue contains processes which are waiting for execution is the major difference.

What is job queue in operating system?

A job queue contains an ordered list of jobs waiting to be processed by a subsystem. The job queue is the first place that a submitted batch job goes before becoming active in a subsystem. The job is held here until a number of factors are met.

What does the ready queue contain?

The ready queue is a simplified version of a kernel data structure consisting of a queue with one entry per priority. Each entry in turn consists of another queue of the threads that are READY at the priority. Any threads that aren't READY aren't in any of the queues—but they will be when they become READY.


1 Answers

The ready queue is a queue of all processes that are waiting to be scheduled on a core/CPU. The process's code or data pages do not necessarily need to be in main memory. If the OS uses demand paging, new processes are placed in the ready queue even though no pages are allocated to the process. Non-demand paged systems will preallocate pages to a process before it goes in the ready queue.

According to this the job queue is the list of processes that reside on mass storage and await main memory allocation.

So in a non-demand paged system the job queue and ready queue are mutually exclusive, and a new process goes in the job queue.

like image 170
Craig S. Anderson Avatar answered Sep 26 '22 04:09

Craig S. Anderson