LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   I don't know how the policy SCHED_FIFO&SCHED_RR both work in kernel. (https://www.linuxquestions.org/questions/linux-kernel-70/i-dont-know-how-the-policy-sched_fifo-and-sched_rr-both-work-in-kernel-4175525842/)

hw0501 11-19-2014 12:07 AM

I don't know how the policy SCHED_FIFO&SCHED_RR both work in kernel.
 
How the policy switch between SCHED_FIFO and SCHED_RR?

sundialsvcs 11-20-2014 05:44 AM

Look at sched.c.

hw0501 11-21-2014 02:17 AM

The following 4 members belong to the task_struct,but what are the use of these four members?Process already has Pid,but ,what is the purpose that credentials used in this structure?Does anybody can give me a hand to show the use of these four members. And what is the distinction between "real_cred" and "cred"?

const struct cred *real_cred; /* objective and real subjective task
* credentials (COW) */
const struct cred *cred; /* effective (overridable) subjective task
* credentials (COW) */
struct mutex cred_guard_mutex; /* guard against foreign influences on
* credential calculations
* (notably. ptrace) */
struct cred *replacement_session_keyring; /*


All times are GMT -5. The time now is 12:59 AM.