Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2007, 05:39 PM
Member
 
Join Date: Jul 2007
Posts: 44
Rep Power: 0
simon is on a distinguished road
Default doubt about synchronized
I have a method which is a synchronized method (for example, method Foo in the following code block) and in this synchronized method another method which is not synchronized is invoked (for example, method Goo in the following code block). I'm wondering when executing in Goo from Foo, whether we still have the synchronized feature
Code:
synchronized public Foo()
{
    Goo();
}

private Goo()
{
}
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 08-01-2007, 01:34 AM
hardwired's Avatar
Senior Member
 
Join Date: Jul 2007
Posts: 1,577
Rep Power: 4
hardwired is on a distinguished road
Default
As far as the callers of Foo are concerned, yes. But who else can be calling Goo besides Foo?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-05-2007, 04:49 AM
Member
 
Join Date: Jul 2007
Posts: 44
Rep Power: 0
simon is on a distinguished road
Default
ok, thanks hardwired
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
doubt shaju_inspira Sun Java Wireless Toolkit 0 01-18-2008 09:38 AM
doubt in jms veena Enterprise JavaBeans 2 01-05-2008 02:42 PM
Please clear my doubt............... vinaytvijayan Advanced Java 0 12-26-2007 07:23 PM
synchronized bugger New To Java 2 11-28-2007 11:33 AM
Return in the Middle of synchronized Block ariak Advanced Java 1 07-26-2007 11:24 AM


All times are GMT +2. The time now is 03:00 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org