Java Language

From NovaOrdis Knowledge Base
Revision as of 03:19, 21 March 2018 by Ovidiu (talk | contribs) (Created page with "=Internal= * Java =Statements= ==synchronized== The <tt>synchronized</tt> statement acquires a mutual-exclusion lock on behalf of the executing thread, e...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Statements

synchronized

The synchronized statement acquires a mutual-exclusion lock on behalf of the executing thread, executes a block, then releases the lock. While the executing thread owns the log, no other thread may acquire the lock.

synchronized (expression) block

The type of expression must be a reference type.