H.Nolte wrt:
> I am a little bit astonished about the java multithreating under linux. For
> me it looks like that the multithreading with the semantic java is much
> better.
>
> ...
> I expected following output:
>
> one
> two
> three
> one
> two
> three
> ...
>
> or similar. Under win95 everything went fine.
> Unter suse-linux 6.1 with jdk1.1.7 and TYA JIT I got following output:
>
> one
> one
> one
> .
> .
> .
> two
> two
> two
> .
> .
> .
> three
> three
> three
> .
> .
> .
>
>
> 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.
no, you haven't got it. onetwothree onetwothree onetwothree is
single-threaded. multithreaded means you get no guarantees about when which
instruction is executed, except as stated in the documentation about
synchronized code and monitors. read the documentation again.
dog
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]