Hi,
<... prg deleted>
> This did not look like multithreading. It is the same if I use native
> threads and not green threads.
> Has anybody an idea how to write   a   real multithread programm under
> linux. I have to know it because we wrote a server and we want to run it
> under linux and not under windows.

The Linux output makes perfekt sense to me, and it it what I expected.
I'm not exactly familiar how the java thread semantic is defined, but it
certainly isn't defined like you think it is... The example you gave
uses multithreading, but each thread needs less than a timeslice, so it
can
complete its output before it is interupted by another thread. Try an
infinite while loop in the thread (or some time consuming calculation)
and you will see the timeslicing. 
BTW: The windows output on the other hand seems very strange, the VM has
to change the thread context at each println-call... Sounds not very
performance promoting...
-- 
        Bye
         Georg Acher, [EMAIL PROTECTED]         
         http://www.in.tum.de/~acher/
          "Oh no, not again !" The bowl of petunias


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to