It is currently Fri May 18, 2012 5:58 pm


Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Synchronized or non Synchronized
PostPosted: Mon Aug 30, 2010 7:07 pm 
Site Admin

Joined: Sat Aug 02, 2008 8:00 am
Posts: 147
What does synchronized means? It means a way or method to enforce the mutual exclusion of critical section. Or in other word, there is mutual variables share by different threads. Synchronization guarantees that when there is any updates made are visible to other threads as well. Using of synchronized blocks would provide both functions which are mutual exclusion and visibility of updates. For those threads use synchronized blocks, it requires that to use the same lock object. Why we need to do synchronization? To ensure there is only one thread is executable to access the field. Or when you are writing the data which have been written for another thread or will be written for other thread later on, then you should do the synchronization. However, for those who have no knowledge on IT aspects, it is strange for them. What happens if they have the problem in technology? They can go for software consulting.

_________________

Muhammad Safwat Fuad
The Java Code Admin
Java Technical Lead.
Mobile: +2010-2942-538
Email:mtv134@yahoo.com


Top
 Profile Send private message  
 
 Post subject: Re: Synchronized or non Synchronized
PostPosted: Wed Sep 15, 2010 7:14 pm 

Joined: Fri Oct 24, 2008 2:14 pm
Posts: 14
This is the source for many thread blocking in the code
:)


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


Who is online

Registered users: MissKdbp


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net

[
SEO MOD © 2007 StarTrekGuide ]