I am looking for some assistance. I have been playing around with threads and synchronizaton trying to prove that synchronization works, but it doesn't seem to be. I'm using Netbeans 6.5 on Windows Vista (have also tried XP). It's just a simple example. It mixes the
thread results up when ran. Since it is sync'd, I wouldn't expect that. Sleep is not supposed to release the lock, but since I am getting bad results, I even tried removing the try/catch block (including the sleep) and I still get mixed up results. I also tried putting a sync'd block right inside the run method, but it still didn't work. Can anyone shed some light on this for me, please? My code is below. Thanks....