Hi,

I hope it is OK that I forward your reply to the list.

David Maplesden wrote:
> Sounds like a good idea.  It didn't feel when writing the code that an extra
> thread per connection would be a problem.  If it is for you then you will
> probably want to pool the communication threads as well, as there is at
> least one of these per connection for the commonly used OIL and UIL
> communication mechanisms.

Yes, I have been looking at this too, but found no easy solution.
Maybe because I am not very familiar with I/O under Java.

My problem is multiplexing several file stream reads on a single
thread. Here, the Java libraries seem to lack features similar
to the BSD select(2) syscall or the SysV poll(2) syscall.
While something could be emulated with the InputStream.available()
method, it would be a busy wait for input since this method would
have to be called almost constantly.

I believe that the new I/O system in JDK1.4 supports this, but
we cannot require users to use that (yet). See JSR-51.


Best Regards,

Ole Husgaard.

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to