Hello,

I've been waiting for years for a solution to missing select()-style IO. Are you 
developing for GNU
GPL? (so the question: may I use and test your code in a real-world application?)

Thank you in advance.

Xuân Baldauf.

(P.S.: Ich spreche auch deutsch)

Bernhard Fastenrath wrote:

> [EMAIL PROTECTED] wrote:
> > At least one company I know of has been forced to a custom JVM
> > (Hewlett-Packard's) in order to get acceptable performance out of a
> > Java-based server, and they basically made an interface to select().
> > I believe they've submitted a proposal to Sun also.  And according to
> > them, the Sun engineers are amenable to doing something about this.
>
> Oops, i was just about to implement it myself.
> Is their select() interface availabe online?
>
> package os.unix.io;
>
> // os.unix.System:
> // public static int select (FdSet read, FdSet write, FdSet exception, Date timeout)
>
> public class FdSet {
>   public native boolean get (int bitIndex);
>   public native void    set (int bitIndex);
>   public native void    set (int bitIndex, boolean bit);
>   public native void    clear (int bitIndex);
>   public native int     length (); // the index of the highest set bit in the BitSet 
>plus one
>   public native int     size ();   // the number of bits of space actually in use by 
>this BitSet
>   static native int[]   getBits ();
>
>   static {
>     java.lang.System.loadLibrary ("unixio");
>   }
> }
>
> A higher level API which automatically assigns work to threads from a
> thread pool could be a pure Java API on top of this.
>
> --
>  Bernhard Fastenrath                           phone +49 228 55991-0 (fax-44)
>  Gesellschaft fuer Digitale Sicherheit mbH,    http://www.digital-security.com
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to