什么是synchronized语句用于? [英] What is synchronized statement used for?
本文介绍了什么是synchronized语句用于?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
synchronized
语句的用法是什么?
推荐答案
它是一种以互斥形式构建的java。这用于多线程应用程序。
It is a java built in form of mutual exclusion. This is used for multithreaded applications.
这里有一个关于synchronized的部分,但如果您尝试使用多线程应用程序,则应该阅读整篇文章。
This has a section about synchronized, but you should read the whole thing if you are trying to use multithreaded applications.
这篇关于什么是synchronized语句用于?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文