Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2008 09:12:21 -0700
From:      "Murty, Ravi" <ravi.murty@intel.com>
To:        <freebsd-hackers@freebsd.org>
Subject:   thread and ksegrp priorities
Message-ID:  <AEBCFC23C0E40949B10BA2C224FC61B006FFC66B@orsmsx416.amr.corp.intel.com>

next in thread | raw e-mail | index | archive | help
Hello All,

=20

I am working on the 6.2 FreeBSD code base and has a couple of simple
questions. The thread structure defines two priority fields
"td_base_pri" and "td_priority" while a ksegrp defines "kg_user_pri" and
"kg_pri_class".=20

=20

1.	Since a ksegrp can have multiple "process scope" threads, how is
kg_user_pri used and how is it related to td_base_pri and td_priority?
2.	What is the difference between td_base_pri and td_priority?
3.	If kg_user_pri changes, does it mean that the priority of all
threads that are part of the ksegrp change?

=20

It appears that these things change when a thread returns to user mode
(returns to normal user priority), when returning from a sleep (priority
boost) etc.

=20

Thanks
Ravi

=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AEBCFC23C0E40949B10BA2C224FC61B006FFC66B>