LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-10-2014, 11:49 AM   #1
jeffwang66
LQ Newbie
 
Registered: Jan 2011
Posts: 27

Rep: Reputation: 0
A flag visible on both user-level thread and linux kernel


Hi,

What flag can be visible for both user-level thread and linux kernel scheduler? For example, if a user-level thread gives the flag a value, the OS scheduler (sched_other policy) can read the value of this flag before scheduling the thread.

Thanks,

Jeff
 
Old 01-12-2014, 08:51 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
In my humble, this should be provided by some kernel interface ... a user-writeable /proc entry, for example. Userland should be able to contribute values to the kernel (maybe ...), but in such matters the kernel should always reign supreme. No timing holes, for example. The kernel does not dabble in the affairs of mortals -- does not rely upon flags etc. which they maintain in their mere-mortal world. The kernel might deign to make itself quite accessible to them (as described ...), but never deals directly in their terms in their world.
 
  


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
How to inform a user-level thread an upcoming context switch jeffwang66 Linux - General 0 01-11-2014 07:44 PM
A flag visible on both user-level thread and linux kernel jeffwang66 Linux - General 1 01-10-2014 11:54 AM
accessing SPI from kernel level and user level ramya_ts Programming 1 01-06-2009 07:30 AM
Linux user Manual and Flag or star in thread of this forum Rohini LQ Suggestions & Feedback 7 12-01-2006 06:40 AM

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

All times are GMT -5. The time now is 05:07 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