or is there any code that I could find what's using the cpu and kill the process??
I saw from conky that, while my phone was idle, it was on 900mhz 100% constantly, it was yesterday and I did not note down the process name.. It was Ok after a restart, but sometimes I wish I could just kill the big processes, like Ctrl+alt+del in windows, and shoot'em up
Use 'top' from the commandline to find what hangs. Then do 'kill PID' (the PID of a proces it the number on the leftmost column of the top display), or killall processname if you know what's hanging and want to skip the top step.
Windows Mobile works very differently from the N900. It's designed so that you need not really close and app, this is managed from the OS itself as RAM becomes shorter. I personally find this design stupid, but then it's why programs like this "CleanRam" exist.
I think the easiest is to use Top and the "pkill <program>". You could try to start by wiriting "top" in the terminal. Open a ny terminal then "pkill top" to close top..