Windows XP Community - XPHeads



Registry Mechanic - Free Scan Now

process wait time

microsoft.public.windowsxp.help_and_support


Reply
  #1 (permalink)  
Old 03-27-2008, 09:08 AM
Rahul
 
Posts: n/a
process wait time
Hi,

I have a C++ program having two threads, out of which thread 1 is cpu
bound and thread 2 is IO bound.
There are two cases for the process
case 1) where both thread needs almost same execution time (say t1)
case 2) Where thread 1 finishes very early then thread 2.

I have a 2 core machine (while doing test I closed all other exe's)

Ideally in case 2 the time to finish the process (process end time -
start time) should be almost equal to /better then case 1. But its
not, and the process runs 10% slower in csae 2.

I suspect that since there are no ready to run thread in case 2 (as
thread 1 finished early) so the OS puts the process in wait queue
whenever thread 2 requests IO, which casue the increase in total time
to finish the process.

the total cpu time as shown by TaskManager is less in case 2, But the
end to end finish time is more.

I want to know is ther any way in windows by which I can find out the
wait time of a process (all the time it spent in ready to run OR
blocked state)



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:38 AM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74