Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

serialization & synchronization

Status
Not open for further replies.

juanferman

Programmer
Nov 14, 2001
40
0
0
US
After many different definitions, can someone give a final simple answer to..

What is the difference between serialization and synchronization?

===================
::) Juan F. Sarria
 
serialization :
Converting a Java class to transportable byte code at runtime so that a class may (more usually) be distributed over a network, (or more unusually) saved to a file, or in a database.

synchronization :
A means by which certain chuncks of code may be considered "thread-safe" - ie only one thread may access the synchronized code at a time.

The two are completely separate.

--------------------------------------------------
Free Database Connection Pooling Software
 
Thanks sedj

By the way, do you have some practical small sample ?


===================
::) Juan F. Sarria
 
Don't make me laugh, this is a serious forum, and laughing out loud in an office makes people all over the place look at you [upsidedown]

haslo@haslo.ch - www.haslo.ch​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top