...是指不会被线程调度机制打断的操作;这种操作一旦开始,就一直运行倒结束,中间不会有任何 context switch (切换到另一个线程)。通常所说的原子操作包括对非long和double型的primitive进行赋值,以及返回这两者之外的primitive。
基于6个网页-相关网页
切换到另一个线程
Switch to another thread
以上为机器翻译结果,长、整句建议使用 人工翻译 。
这样做,你必须指定点的任务代码中的线程可以切换到另一个任务。
To do that, you have to specify the points in task code where the thread is allowed to cut over to another task.
youdao
应用推荐
模块上移
模块下移
不移动