Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread Interaction diagram and Testing Multi threaded programs  RSS feed

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

Can someone tell me what is a thread interaction diagram and how to draw it? Also, I was wondering how to Test Multi Threaded programs and how to write test cases for them.

Please help me

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Crazy Hunk", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once you get your name straightened out ... try the Sun Concurrency Lesson. It will give you a great start on threads.

Testing real Threads can be very tough because it's hard to predict what will happen and hard to force all possible conditions. I've never invested much in showing threads in detailed diagrams for the same reason - there are so many possible ways things could come out. I might show one or two expected situations .. if A happens before B or if B happens before A.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!