Does Kaffe handle threaded network I/O?

Stewart Allen kaffe@kaffe.org
Wed, 23 Apr 1997 16:32:35 -0400 (EDT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---215612553-1033666955-861392379=:7630
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.3.95.970418154509.7630H@flex.neuron.com>


 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?).

 Thanks,

 -stewart-

---------- Forwarded message ----------
Date: Fri, 18 Apr 1997 16:08:53 -0400 (EDT)
From: Stewart Allen <stewart@neuron.com>
To: kaffe@sarc.city.ac.uk
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.

 -stewart-

---215612553-1033666955-861392379=:7630--