This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Thread synch question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Thread synch question" Watch "Thread synch question" New topic

Thread synch question

cornel jew
Ranch Hand

Joined: Jul 13, 2002
Posts: 37
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
Dave put in UBB code tags
[ December 09, 2002: Message edited by: Dave Vick ]
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Moving to the threads forum...

It is sorta covered in the JavaRanch Style Guide.
subject: Thread synch question
Similar Threads
Question on synchronize block
Question on syncrhonized methods
Clarification on Thread
Threading synchronization
Thread synch question