Add the multiple thread for the MainApplication.