Does Kaffe handle threaded network I/O?

Stewart Allen stewart at
Wed Apr 23 13:32:35 PDT 1997

 I sent this to the list last week, but I haven't heard back.
 I'm writing an application that has a background thread handling
 communications via UDP. Kaffe seems to block all threads whenever
 I do a receive() on a UDP socket. Sun's VM doesn't do this.

 I haven't tested for other forms of I/O (like file), but I'm curious if
 this is a known problem (Tim?).



---------- Forwarded message ----------
Date: Fri, 18 Apr 1997 16:08:53 -0400 (EDT)
From: Stewart Allen <stewart at>
To: kaffe at
Subject: I/O blocks threads?

 * kaffe 0.8.4
 * Linux 2.0.27 i586

 I'm having a problem with I/O calls blocking threads. Is this a
 well-known problem with kaffe or is it specific to the Linux which
 I'm running it on?

 I've attached bit of sample code which shows the problem. After
 compiling, invoke it with:

 kaffe udptest

 The Java VM completes the test, but kaffe blocks after the
 first call to receive(). If I run the client and server as
 separate processes then all is well. To do this:

 kaffe udpclient 7777
 kaffe udpserver localhost 7777

 in separate windows. Make sure you start the client first. They both
 send text to STDOUT.


More information about the kaffe mailing list