This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes doubt on synchronized block-2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic

doubt on synchronized block-2

shankara me

Joined: Nov 30, 2012
Posts: 14
the general form of synchronized block is

Here object means object of table class or object of stringor integer.... class.
I want a programme where object of string class or object of integer class is locked in table class of above code.
can any one give such type of programme by editing below pogramme.
I hope you help me.

Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

shankara can you please explain your question properly.

With Regards :-
Harmeet Singh
Henry Wong

Joined: Sep 28, 2004
Posts: 19936

Starting another topic to ask the same question again is a bit inefficient isn't it? Would it not be easier to simply follow up on your previous topic?


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: doubt on synchronized block-2
It's not a secret anymore!