Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread synch question

 
cornel jew
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I was running the following code,but the output is intermixed although the test method is synchronized.
What i understand is when a method is synch no other thread can access that method b4 it is finish
What am i missing here.

Thanks for your help
cornel
Dave put in UBB code tags
[ December 09, 2002: Message edited by: Dave Vick ]
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the threads forum...
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!