How do I keep an application running after logout?
If you need to logout so that another user can use the computer, you can enable Fast User Switching. The other user will be able to use the Mac, while your program still runs.