aspose file tools*
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
Author

doubt on synchronized block-2

shankara me
Greenhorn

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.
---------------------------------------------------------------------------------------
i

--------------------------
Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

shankara can you please explain your question properly.


With Regards :-
Harmeet Singh
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18989
    
  40


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?

http://www.coderanch.com/t/599436/threads/java/synchronized-block-java

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doubt on synchronized block-2