This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

如何使一个task暂时不被优先级更高的task抢先?



执行一小段代码过程中希望task能暂时不被优先级更高的任务抢先,该怎么做呢?