Fork processes.

Godmar Back gback at cs.utah.edu
Tue Feb 9 18:14:24 PST 1999


> 
> Godmar Back wrote:
> 
> > As an aside, the JNI specification does not say anything about what
> > functions are safe to invoke from native code.  Specifically, there
> > is no interface to my knowledge that would allow a JNI library to
> > make use of such services as file or network I/O, which are provided
> [snip]
> 
> The interface that Sun intends you to use for file or network I/O from
> JNI methods is java.io.*, accessed via JNI's env pointer. Although
> writing native code that uses Java is a colossal pain, there's no point
> exposing a second file I/O interface; you've got a perfectly good one
> already, that interoperates fully with your java code.

True.
I should have been more specific.  I'm talking about such cases as
doing ioctls on your digital synthesizer device, about libraries such
as libX11 that read from sockets, or your Java active network router
that needs access to a routing socket.  I believe that native methods
are often used for such functionality that is not supported by java.io.*.

	- Godmar



More information about the kaffe mailing list