This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pls explain the program

 
Niyas Ahmed Sheikh
Ranch Hand
Posts: 129
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In the above, what will happened when we sending the 'target' object as argument. I can't understand the coding in BOLD. Please explain it, why the object has been send as argument and other related tips in this regd.
 
Svend Rost
Ranch Hand
Posts: 904
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You forgot to tell us, what happend when you ran the program.

Disclaimer: I havn't tested the program.


Your three caller objects gets initialized, and as you can see in their
constructor:

They start themselves as threads, and their run method gets called which
calls the callme object's call method, which prints "[message]" unless
it gets interupted by another thread..

/Svend Rost
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic