您的位置:首页 > 编程语言 > Java开发

volatile关键字对 - What is the volatile keyword useful for

2020-07-14 06:54 951 查看

精选30+云产品,助力企业轻松上云!>>>

问题:

At work today, I came across the volatile keyword in Java. 今天的工作中,我遇到了Java中的volatile关键字。 Not being very familiar with it, I found this explanation: 不太熟悉,我发现了以下解释:

Java theory and practice: Managing volatility Java理论与实践:管理波动

Given the detail in which that article explains the keyword in question, do you ever use it or could you ever see a case in which you could use this keyword in the correct manner? 鉴于该文章详细解释了所讨论的关键字,您是否曾经使用过它,或者是否曾见过可以正确使用该关键字的情况?

解决方案:

参考一: https://stackoom.com/question/RjD/volatile关键字对
参考二: https://oldbug.net/q/RjD/What-is-the-volatile-keyword-useful-for
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  java