同步语句是做什么用的?什么用、语句

2023-09-07 16:30:38 作者:幼稚园杠精

同步语句有什么用?

推荐答案

这是一个java内置的互斥形式.这用于多线程应用程序.

It is a java built in form of mutual exclusion. This is used for multithreaded applications.

Sun 并发教程

这有一个关于同步的部分,但如果你尝试使用多线程应用程序,你应该阅读整个内容.

This has a section about synchronized, but you should read the whole thing if you are trying to use multithreaded applications.

维基互斥锁