Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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: 1371
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: 18542
    
  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?
 
Similar Threads
Volatile - synchronized ?
Synchronized calling non-synchronized
synchronized - wait()
synchronized block