This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Thread.sleep() doesn't seem to do anything on Linux/glibc 2.0.7. The
following code will print one dot per second when run in java, but will
run through instantly using gcj:
public class SleepTest
{
public static void main(String args[])
{
System.out.print("Sleeping");
for (int i=0; i<5; i++) {
System.out.print(".");
try
{
Thread.sleep(1000);
}
catch (InterruptedException x)
{
System.err.println(x);
}
}
System.out.println("Done");
}
}
regards
[ bryce ]