When and why would I use Java synchronization?

Possible Duplicate:
What does 'synchronized' mean?

What is the purpose of Java synchronization, and how should I use it?


Java Tutorial: Synchronization. A generic answer to your generic question. Don't like it? Please elaborate a little. Cheers.


If you mean how to implement synchronization (as in Java), it is language dependent. Generally it can implemented using the OS level locks (as in semaphores, mutex etc)

链接地址: http://www.djcxy.com/p/91854.html

上一篇: 什么“同步”到底如何?

下一篇: 何时以及为什么要使用Java同步?