aspose file tools*
The moose likes Beginning Java and the fly likes call non-synchronized method within synchronized method  (or) synchronized block? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "call non-synchronized method within synchronized method  (or) synchronized block?" Watch "call non-synchronized method within synchronized method  (or) synchronized block?" New topic
Author

call non-synchronized method within synchronized method (or) synchronized block?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1378
Can i call non-synchronized method within synchronized method ?

synchronized int A() {
B();

}

int B() {

}

(or) Can i call non-synchronized method within synchronized block ?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40


Sure... why not?


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call non-synchronized method within synchronized method (or) synchronized block?