The extensive use of volatiles here enables the most performance-critical actions, such as enqueuing and dequeuing tasks in the workQueue, [color=red]to normally proceed without holding the mainLock when they see that the state allows actions[/color], although,as described below, sometimes at the expense of re-checks following these actions.
上面是threadPoolExecutor的一段注释,标红的是什么意思,请教!
The extensive use of volatiles here enables the most performance-critical actions to normally proceed without holding the mainLock when they see that the state allows actions
可以这么看,中间那段such as 是举例 这样看你应该就明白了~