LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-19-2014, 12:07 AM   #1
hw0501
LQ Newbie
 
Registered: Nov 2014
Location: Beijing,China
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 11-20-2014, 05:44 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
Look at sched.c.
 
Old 11-21-2014, 02:17 AM   #3
hw0501
LQ Newbie
 
Registered: Nov 2014
Location: Beijing,China
Posts: 2

Original Poster
Rep: Reputation: Disabled
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; /*
 
  


Reply



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
Linux pthread priority real time scheduler (SCHED_RR) doesn't seem work properly Jia Hong Programming 4 04-30-2014 07:16 AM
Linux pthread priority real time scheduler (SCHED_RR) doesn't seem work properly Jia Hong Linux - Software 1 04-29-2014 01:26 AM
Sample program that uses SCHED_RR and SCHED_FIFO famsinyi Programming 3 03-11-2013 09:13 AM
running pthreads under SCHED_FIFO policy saintt Programming 0 11-16-2001 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:32 PM.

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