File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 1300
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: 16684
    
  19


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 - wait()
synchronized block
Synchronized calling non-synchronized