Startup time improved

Threads now also limit their priority while waiting for the application
to start up.