cpuhog

Is there any command to find out which prcoess or processes are hogging cpu time?

There are several commands. "top" would be a pretty good choice. top comes with HP-UX.

Glance also will show you the current cpu hog if you go to the second page after hitting "c" type "f"