Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 01-11-2011, 03:29 AM   #1
Registered: Mar 2010
Posts: 40

Rep: Reputation: 0
difference between ready queue and run queue

Hi bro, what is the difference between ready queue and run queue?? Are those same?
Old 01-11-2011, 02:30 PM   #2
Senior Member
Registered: Apr 2009
Posts: 1,755

Rep: Reputation: 155Reputation: 155
- every processor has a runqueue associated with it (what someone call ready queue).
- each runqueue has 2 priority arrays, the active and the expired.
The active array stores the processes that still have some time slice.
Once this time finished, they go to the expired array.
Each array has 140 entries (queues), one for each privilege level.
So, picking a process to run is as simple as picking the first
process of the first non-empty queue. As the number of queue
is fixed (140) and independent of the number of processes running.
Old 01-11-2011, 09:19 PM   #3
Registered: Mar 2010
Posts: 40

Original Poster
Rep: Reputation: 0
thanks a lot, it is pretty clear description..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any chance to get length of run queue and swap queue? emJ4y Programming 1 11-03-2010 02:13 PM
How to untar my tarred mail queue folder back to the sendmail queue directory again? Md.Abul Quashem Linux - Server 6 02-16-2010 08:32 AM
what is the contents of Linux Run Queue? nesta Programming 4 06-17-2009 08:10 AM
Is it possible for me to write in front of queue in case of message queue? hemanthv414 Linux - Newbie 1 11-17-2008 04:40 PM
put a process in run queue swaroopjoshi Linux - Kernel 6 11-21-2006 11:32 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration