<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>C#</title><link>http://forums.asp.net/37.aspx</link><description>Discussions/Questions about the C# language. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=13&amp;c=23" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: High CPU usage</title><link>http://forums.asp.net/thread/3274883.aspx</link><pubDate>Sat, 04 Jul 2009 18:24:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274883</guid><dc:creator>abdelnaby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274883.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3274883</wfw:commentRss><description>&lt;p&gt;FIrst you have to move processor consuming processes to a seperate thread &lt;/p&gt;
&lt;p&gt;second you set the thread periorty to lowerst ( or better leave it as a user setting ) &lt;/p&gt;
&lt;p&gt;3rd use threadpool.queueworkitem &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4th you can consider the background worker control&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;consider upgrade CPU . this is a no-coding solution &lt;/p&gt;</description></item><item><title>Re: High CPU usage</title><link>http://forums.asp.net/thread/3274835.aspx</link><pubDate>Sat, 04 Jul 2009 16:47:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274835</guid><dc:creator>TATWORTH</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274835.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3274835</wfw:commentRss><description>&lt;p&gt;Leaving aside the issue of efficiency, you can improve responsiveness to other applications on the PC by including a call to sleep for say 5 milli-seconds in your main loop.&lt;/p&gt;&lt;p&gt;See &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/system.threading.thread.sleep.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.threading.thread.sleep.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If your application is WinForms, then it would have been best asked at:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Windows Forms &lt;a href="http://windowsclient.net/" target="_blank"&gt;&lt;font color="#034efa"&gt;http://windowsclient.net/&lt;/font&gt;&lt;/a&gt; &lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;MSDN&amp;nbsp; &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/category/windowsforms/" target="_blank"&gt;&lt;font color="#034efa"&gt;http://social.msdn.microsoft.com/Forums/en-US/category/windowsforms/&lt;/font&gt;&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Re: High CPU usage</title><link>http://forums.asp.net/thread/3273934.aspx</link><pubDate>Fri, 03 Jul 2009 19:13:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273934</guid><dc:creator>JeffreyABecker</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273934.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3273934</wfw:commentRss><description>&lt;p&gt;Are you doing something that would be expected to be processor intensive?&amp;nbsp; Have you profiled your application and done Big-O analysis of your algorithms?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: High CPU usage</title><link>http://forums.asp.net/thread/3273670.aspx</link><pubDate>Fri, 03 Jul 2009 14:25:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273670</guid><dc:creator>stevew1975</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273670.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3273670</wfw:commentRss><description>&lt;p&gt;without knowing what you have developed it will be very difficult to provide a solution.&lt;/p&gt;&lt;p&gt;a possible issues could be if you are running continues loops, the cpu usage will be high.&amp;nbsp; &lt;/p&gt;&lt;p&gt;To get around this, you could convert this into a windows service with a timer to run every x seconds/minutes.&amp;nbsp; You could leave it as an application and run as a scheduled task to run every x seconds/minutes.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>High CPU usage</title><link>http://forums.asp.net/thread/3273551.aspx</link><pubDate>Fri, 03 Jul 2009 13:03:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273551</guid><dc:creator>usharaniP</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273551.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3273551</wfw:commentRss><description>&lt;p&gt;Hi, I have developed a windows tool, which is occupying the high cpu usage while running. Sometimes other programs are being struck when running the tool. The tool does many process in the system. But i dont want to take more usage of CPU. Application is in final stage. Please provide solution for my problem.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in Advance.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>