wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes Is it possible to acceessdifferent parts of class by different threads? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Is it possible to acceessdifferent parts of class by different threads?" Watch "Is it possible to acceessdifferent parts of class by different threads?" New topic
Author

Is it possible to acceessdifferent parts of class by different threads?

shankara me
Greenhorn

Joined: Nov 30, 2012
Posts: 14
Hi !my doubts are based on below programme.
------------------------------------------------------------------


--------------------------------
Here c1 is object of class C.
I have accessed method f1 of object c1 by threads t1 and t2.
My Doubt:
I want to access method f1 by thread t1 and f2 by thread t2.
Is it possible?
If possible please tell me

Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2271
    
  28

Yes it's possible. 2 threads can call the same class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to acceessdifferent parts of class by different threads?
 
Similar Threads
Doubt in Thread
doubt in threads
Thread synchronization
doubt on synchronized block in java
Basic thread doubt