LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2008, 11:21 AM   #1
linuxdoniv
Member
 
Registered: Mar 2008
Posts: 63

Rep: Reputation: 15
Unhappy relationship between number of involuntary switches and prioirty


Hi,

I was observing how the involuntary context switches and priority of a process vary. I could see that priority(normal, static, priority) varied exactly as number of involuntary context switches and they were almost exactly the same.

( the both the fields are extracted from task_struct )

Could anybody guide me as how they are related and why they are related...

Thanks in Advance....
 
Old 04-16-2008, 09:26 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
The last sentence in the first paragraph explains it. Whenever a higher priority process wants the cpu it gets the cpu. period.

http://safari.oreilly.com/0201702452/ch04lev1sec3
 
  


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
Trust relationship abhishek124 Linux - Networking 2 06-13-2005 02:18 AM
what's their relationship? jackandking Linux - Software 2 12-17-2004 06:21 AM
how do you edit your virtual console number? (or VT number 3) jjorloff1 Linux - General 2 04-03-2004 07:21 PM
why there is a need for minor number and major number for monitor/keyboard in pc? tripathi Solaris / OpenSolaris 1 11-07-2003 09:36 AM
relationship advice Brain Drop General 38 07-15-2003 04:17 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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