Check whether or not the current thread is the main thread Check whether or not the current thread is the main thread multithreading multithreading