Start up terminal and type
top
you'll see the following columns:
pid -- process ID. If you don't like the application (for example, Classic, which has problem quitting as well as TruBlueEnvironment which is the emulator part of Classic), you can later type
kill # -- # is the process...