Revert "An application now work in one thread."

This reverts commit a4f575348273c23884e451d933604f792d18f674.