Two Laptop Bag
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
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: 20517

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!