kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Why Completely Fair Scheduler(CFS) using Red-Black tree instead of Min-heap?
@ 2015-10-17 18:25 venu gangireddy
  2015-10-18  6:55 ` Nicholas Mc Guire
  2015-10-18  7:35 ` anish singh
  0 siblings, 2 replies; 3+ messages in thread
From: venu gangireddy @ 2015-10-17 18:25 UTC (permalink / raw)
  To: kernelnewbies

Hi,

Currently, I am learning about CFS scheduler in linux, and I want to know
reason about the data structure chooses in CFS implementation.

CFS scheduler picks next process based on minimum virtual time and to get
this value efficiently its using Red-Black tree(rbtree), using rbtree we
will get minimum O(h) here h is height of rbtree. But, using min-heap we
can get min virtual time process in O(1) time only. I just want to know why
min-heap is not consider in CFS implementation and is there any
difficulties using min-heap in kernel level?

Thanks in advance.

-- 

*Regards,*
*Venugopal Reddy.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151017/ed7f3ade/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-18  7:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-17 18:25 Why Completely Fair Scheduler(CFS) using Red-Black tree instead of Min-heap? venu gangireddy
2015-10-18  6:55 ` Nicholas Mc Guire
2015-10-18  7:35 ` anish singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).