Hey I was working with python. In my python file I just have 2 lines like :
#!/usr/bin/env
print("hello")
and I make my .py file executable and run it(./hello.py) on ubuntu server. With "top" command, i listed all processes. hello.py uses 100% CPU. Why it use 100% CPU(Server has 512MB 1 CPU)
python, i.e. add python to the header:#!/usr/bin/env pythonwhich pythonreturns. Then try changing that line to use that python version, perhaps it needs to be something like#!/usr/bin/env python3