>>>>> "SGM" == Scott Gregory Miller <[EMAIL PROTECTED]> writes:
SGM> The second synchronizes the entire method. The internal
SGM> synchronized block lets you lock a specific chunk of code.
SGM> Better, you get to lock on a specific object, so you can
SGM> control access to the object rather than the method.
No, I understand that. What I was talking about was exactly what I
wrote -- that the synchonized block uses the monitor belonging to
"this", and that there's no code outside the block.
~Mr. Bad
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/\____/\ Mr. Bad <[EMAIL PROTECTED]>
\ / Pigdog Journal | http://pigdog.org/ | *Stay*Real*Bad*
| (X \x)
( ((**) "If it's not bad, don't do it.
\ <vvv> If it's not crazy, don't say it." - Ben Franklin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Freenet-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/freenet-dev