This piece of code will enable the interrupt early before switching to the first thread. Although it is harmless, but not prefect.