it's simply like this:
when ever the code meets a line synchronized( <ref> ) the code should
then get a lock on the <ref> we have provided. without the lock the
code cannot continue from there. so it will wait till the lock is allocated
to the thread witch requesting it. so for the example
hope this help...
[ June 04, 2008: Message edited by: Abdul Mifraz ]
[ June 04, 2008: Message edited by: Abdul Mifraz ]
[ June 04, 2008: Message edited by: Abdul Mifraz ]