On Tue, 18 Aug 1998, Nelson Minar wrote:
> On the freshmeat tip, the OpenGroup has finally released their port of
> the JDK for Linux. http://www.camb.opengroup.org/RI/java/linux/
> This one is based on native Linux threads.
>
> Three JDK ports for Linux, hooray! And now with yet another delay for
> JDK 1.2, we're almost caught up :-)
Well it looks very cool, the native threads work and even my old libtya.so
version 1.0 works with it right out of the box, which is amazing, I
thought the differences in thread implementation would break it.
But my scandinavic letters don't work even in their glibc port, which
leads me to suspect that something is very wrong with the configuration of
my machine itself, not the ports. If I just knew what.
Testimony of native threads :)
(jdk 1.1.6 blackdown port)
[toni@delphine /crap]$ java ThreadTest
Starting main
Running thread Thread1
DONE! Thread1
Running thread Thread2
DONE! Thread2
(OpenGroup port)
[toni@sumu ~/java]$ java ThreadTest
TYA 1.0 (for J116) loaded. Copyright (c) 1997,98 The TYA Team
Contact The TYA Team via Albrecht Kleine <[EMAIL PROTECTED]>
Starting main
Running thread Thread1
Running thread Thread2
DONE! Thread1
DONE! Thread2
[toni@sumu ~/java]$ cat ThreadTest.java
import java.*;
class ThreadTest {
public static void main(String[] args) {
System.out.println("Starting main");
new TestThread("Thread1").start();
new TestThread("Thread2").start();
}
}
class TestThread extends Thread {
public TestThread(String str) {
super(str);
}
public void run() {
System.out.println("Running thread " + getName());
for (long I = 10000000; I-- > 0;) ;
System.out.println("DONE! " + getName());
}
}