• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
shankara me
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it's possible. 2 threads can call the same class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic