From owner-freebsd-java Fri Oct 29 22:47:20 1999 Delivered-To: freebsd-java@freebsd.org Received: from isis.uniandes.edu.co (isis.uniandes.edu.co [157.253.54.5]) by hub.freebsd.org (Postfix) with ESMTP id A77D614CF8 for ; Fri, 29 Oct 1999 22:47:10 -0700 (PDT) (envelope-from ser-garc@uniandes.edu.co) Received: from isis (isis [157.253.54.5]) by isis.uniandes.edu.co (8.9.3/8.9.3) with SMTP id AAA06179 for ; Sat, 30 Oct 1999 00:44:47 -0500 (GMT+5) Date: Sat, 30 Oct 1999 00:44:45 -0500 (GMT+5) From: SeRgIo ArTuRo GaRcIa X-Sender: ser-garc@isis To: freebsd-java@freebsd.org Subject: Threads Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org is Something wrong with the following code? : import java.io.*; import java.awt.*; public class Chanda { public static void main(String args[]) { miThread n=new miThread(); (new Frame()).show(); } } class miThread implements Runnable { public miThread() { Thread t = new Thread (this); t.start(); } public void run() { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); try { String tmp=bf.readLine(); } catch (Exception e) { System.err.println(e.toString()); } System.out.println(); } } the frame in the main program is never shown until the bf.readLine(); is done!! Im talking about the last release of JDK for FreeBSD, running on FreeBSD 3.1 Release. I have tried the same code in Debian with Kaffe and JDK, nad it works fine. Sergio Arturo Garcia "That is not dead which ser-garc@uniandes.edu.co can eternal lie, http://www.calabozo.com/sergio Yet with strange aeons, ***************************** even Death may die." A.A. 18269 Santafe de Bogota, COLOMBIA Howard P. Lovecraft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message