A threaded application implementation to allow a separate context for each application.