<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Alternate Sleep Function for ASP, HTA, WSC, etc.</title>
	<link>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/</link>
	<description>Ask the Windows Guru!</description>
	<pubDate>Fri, 12 Mar 2010 02:48:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Processor Benchmark</title>
		<link>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-79970</link>
		<dc:creator>Processor Benchmark</dc:creator>
		<pubDate>Fri, 05 Mar 2010 16:43:30 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-79970</guid>
		<description>Sweet.... This is what I'm looking for</description>
		<content:encoded><![CDATA[<p>Sweet&#8230;. This is what I&#8217;m looking for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-74806</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 21 Jan 2010 09:58:53 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-74806</guid>
		<description>Hi Nilpo,

thanks for your snippet, but David is totally correct in stating the performance consumption of your code. While "waiting" for the dteEnd time to be reached it consumes lots of lots of CPU cycles to check the current time again and again. That's nearly sort of an infinite loop driving your CPU load nearly up to 100%.

Of course you are able to do other things in between. That's what you have a multi tasking operating system for.

Unfortunately I do not know of a real VBScript Sleep function consuming no CPU cycles.

Regards, Tom.</description>
		<content:encoded><![CDATA[<p>Hi Nilpo,</p>
<p>thanks for your snippet, but David is totally correct in stating the performance consumption of your code. While &#8220;waiting&#8221; for the dteEnd time to be reached it consumes lots of lots of CPU cycles to check the current time again and again. That&#8217;s nearly sort of an infinite loop driving your CPU load nearly up to 100%.</p>
<p>Of course you are able to do other things in between. That&#8217;s what you have a multi tasking operating system for.</p>
<p>Unfortunately I do not know of a real VBScript Sleep function consuming no CPU cycles.</p>
<p>Regards, Tom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mayr Fortuna</title>
		<link>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-63099</link>
		<dc:creator>Mayr Fortuna</dc:creator>
		<pubDate>Fri, 02 Oct 2009 17:45:36 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-63099</guid>
		<description>Hi there everybody?

Just wana thak you Nipo for this wonderfull snippet!

It´s in use at www.dhstation.com for the chat facility stack sinchro!

Thank you very much.
                                   Mayr Fortuna</description>
		<content:encoded><![CDATA[<p>Hi there everybody?</p>
<p>Just wana thak you Nipo for this wonderfull snippet!</p>
<p>It´s in use at <a href="http://www.dhstation.com" rel="nofollow">www.dhstation.com</a> for the chat facility stack sinchro!</p>
<p>Thank you very much.<br />
                                   Mayr Fortuna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilpo</title>
		<link>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-23642</link>
		<dc:creator>Nilpo</dc:creator>
		<pubDate>Wed, 28 Jan 2009 10:33:14 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-23642</guid>
		<description>Hello David.

It doesn't hurt your CPU at all to run at or near capacity, even for extended periods of time. (Assuming, of course, that you have proper cooling.)  That is, after all, what the hardware is designed to do.  What becomes important is &lt;i&gt;what&lt;/i&gt; your CPU is doing.

In this case, the CPU is running seemingly menial tasks.  It's not performing complex calculations.  In essence it's simply counting.  And since this is a low-priority task it will have little effect on any other processes.  If another process requires more CPU power, this will simply step down and hand it over willingly.

All in all, while the CPU usage is a measure of what your CPU is doing, it's not a very accurate measure of how hard it's actually working.  So even though the CPU usage might indicate that the CPU is under a higher than normal load; In this case, it's not really under any additional stress.

If you're not comfortable with those levels, try taking it for a test drive.  Set a script to sleep for a minute and then perform some normal tasks.  Open your browser and Microsoft Word, play a video, etc.  You shouldn't notice any slower system response while performing these tasks despite the fact that the sleep timer is running.</description>
		<content:encoded><![CDATA[<p>Hello David.</p>
<p>It doesn&#8217;t hurt your CPU at all to run at or near capacity, even for extended periods of time. (Assuming, of course, that you have proper cooling.)  That is, after all, what the hardware is designed to do.  What becomes important is <i>what</i> your CPU is doing.</p>
<p>In this case, the CPU is running seemingly menial tasks.  It&#8217;s not performing complex calculations.  In essence it&#8217;s simply counting.  And since this is a low-priority task it will have little effect on any other processes.  If another process requires more CPU power, this will simply step down and hand it over willingly.</p>
<p>All in all, while the CPU usage is a measure of what your CPU is doing, it&#8217;s not a very accurate measure of how hard it&#8217;s actually working.  So even though the CPU usage might indicate that the CPU is under a higher than normal load; In this case, it&#8217;s not really under any additional stress.</p>
<p>If you&#8217;re not comfortable with those levels, try taking it for a test drive.  Set a script to sleep for a minute and then perform some normal tasks.  Open your browser and Microsoft Word, play a video, etc.  You shouldn&#8217;t notice any slower system response while performing these tasks despite the fact that the sleep timer is running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-23636</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 28 Jan 2009 09:05:55 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-23636</guid>
		<description>Have you seen the CPU running during the sleep? 50% CPU charge in my local computer...

David</description>
		<content:encoded><![CDATA[<p>Have you seen the CPU running during the sleep? 50% CPU charge in my local computer&#8230;</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilpo</title>
		<link>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-22125</link>
		<dc:creator>Nilpo</dc:creator>
		<pubDate>Fri, 16 Jan 2009 21:33:08 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-22125</guid>
		<description>You're very welcome.  I appreciate your comments.

Nilpo</description>
		<content:encoded><![CDATA[<p>You&#8217;re very welcome.  I appreciate your comments.</p>
<p>Nilpo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-22124</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 16 Jan 2009 20:49:23 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/12/windows-scripting/alternate-sleep-function-for-asp-hta-wsc-etc/#comment-22124</guid>
		<description>Great snippet. Thanks for the help. That's a great banner by the way.

Regards,

AF</description>
		<content:encoded><![CDATA[<p>Great snippet. Thanks for the help. That&#8217;s a great banner by the way.</p>
<p>Regards,</p>
<p>AF</p>
]]></content:encoded>
	</item>
</channel>
</rss>
