This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 18765
    
  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)
 
Consider Paul's rocket mass heater.
 
subject: doubt on synchronized block-2