Strange ways to keep an endless high CPU usage There are some ways which cause an endless high CPU usage such as catching recursion exception. e.g. the following script in Python causes that problem:

def main():
    try:
        main()
    except:
        main()

main()


This is an obvious and simple example, but there might be some strange ways to arise such problems.
JavaScript

Even JavaScript beginners should understand the code below!

// JavaScript for Beginners
// Variables, for loops

// The line below will set a global variable called "x" to 90
// Note: never use this style of code. It is evil!
х = 90;

// The line below will set a local variable called "x" to 90
var x = 90;


for (var х=0; х&lt;10; x++) {
  console.log('JS for beginners: this is iteration #' + х);
}


Warning


   It produces an infinite loop
 Don't run it in your browser unless you know how to kill the tab/process or restart the machine :)


How does it work?


   There are two kinds of variable names in the code:
 1. the normal 'x' which can be found on the keyboard
 2. a cyrillic 'х': http://en.wikipedia.org/wiki/%D0%A5