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 05-31-2007, 11:14 PM   #1
sekhar
LQ Newbie
 
Registered: May 2007
Posts: 8

Rep: Reputation: 0
measuring context switch time between two threads


Hi Guys ,


could you help me out with a sample code for measuring context switch between two threads or processes using priority changing of one thread in another so that control tranfers each time to each thread . ex T1 gets control first then T2 , then T1, then T2 and so on......... . i want to do it for more than 1000 times in this fashion . plea help me out with a solution.


Thanks in advance .....

bye
sekhar.
 
Old 06-01-2007, 07:16 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
Context switch arunachalam Linux - General 3 06-15-2009 01:21 PM
Measuring TCP Stack execution time anirvana Linux - Networking 0 03-15-2007 08:01 PM
Thread context switch causes lost interrupt EmbeddedSteve Linux - Kernel 1 09-01-2006 03:45 PM
measuring time in linux (in C) Four Programming 4 12-30-2005 09:21 PM
measuring time Hano Programming 2 04-21-2002 12:48 AM

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

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