Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

what are voluntry/involuntary context-switches

Status
Not open for further replies.

sagar474

Full Member level 5
Joined
Oct 18, 2009
Messages
285
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,318
Location
India,kakinada
Activity points
3,122
I have these lines in my code profiler. what is the meaning of these lines. how these results effect my program execution.

Number of voluntary context-switches 6
Number of involuntary context-switches 3
 

Hi Sagar ,

Got this article , may be helpful for you too -
InformIT: FreeBSD Process Management > Context Switching


in short form
"A voluntary context switch occurs when a thread blocks because it requires a resource that is unavailable. An involuntary context switch takes place when a thread executes for the duration of its time slice or when the system identifies a higher-priority thread to run."

I do not know in exact which context it is written , but it seems like "the maximum allowed voluntary context switch at a time is 6 and maximum allowed involuntary context switch can be acceptable is 3"

Will be happy if you reflect any more info on it. :idea:

Regards,
Saubhik
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top