100 cpu utilisation

100 cpu utilisation

 

       Do you want to see how infinite loop can affect performance of the application? Here is the proof.
Write down simple code below and monitor the CPU utilzation.
you can use any language to test.

protected void Page_Load(object sender, EventArgs e)
{  

while(true);

}

 



Look after running this infinite loop CPU utilzation raised to 100%.
Remember don;t use infinite loops.

Tags:

Sql server cpu utilisationclient server communicationC# Thread SleepC# while loopPaypal purpose code IndiaC# Do While Loop ExampleC#.net TimersJQuery Animate Div Height and WidthASP.net monitor server What Is DumprepHack WiFi Network

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.