ps should just give you a snapshot of the processes running and then it will exit.
What did you enter and what are you getting ? And what OS are you on ?
Code:
Is some one else is running a process which is hanged. But in that case also if i do ps it should show only the processes running by me only.
I didnt get what you are trying to say.
Doing a
ps x will give you the process listing under your user name.