|
| Total Answers and Comments: 7 |
Last Update: November 08, 2007 |
|
| | |
|
Submitted by: ravikant Well Synchronization is the way to make our program safe. It is used in multithreading. As we know when we have two or more threads that share a common code there can be some problem like inconsistent of data if one thread is updating data in that code. so if we make that sharable code(common code) synchronized then its ensured that at a given time only one thread will be having rights to access that code. other threads can't access the code untill its free that is not being used by other thread. hope your point is clear now.
Above answer was rated as good by the following members: Lokesh M, freeman76 | Go To Top
|