Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What Is Synchronization
What do you understand by Synchronization?
✍: FYIcenter
Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modify a shared object while another thread is in the process of using or updating the object's value. Synchronization prevents such type of data corruption.
Examples of synchronizing methods or block of codes
public synchronized void myMethod() {
...
}
public yourMethod() {
...
synchronized (this) {
...
}
}
2007-03-03, 5829👍, 0💬
Popular Posts:
How To Use mysqlbinlog to View Binary Logs? - MySQL FAQs - Server Daemon mysqld Administration If yo...
What is CAR (Causal Analysis and Resolution)? The basic purpose of CAR is to analyze all defects, pr...
How To Download and install PSP Evaluation? - PSP Tutorials - Fading Images to Background Colors wit...
Can you tell me how to check whether a linked list is circular? Create two pointers, and set both to...
What will be printed as the result of the operation below: main() { int x=10, y=15; x = x++; y = ++y...