|
From: Kevin B. <kb...@ca...> - 2002-01-15 22:36:00
|
This is a case that shows the client-bias Java is trying to overcome. You have a couple of choices for asynchronous IO in Java: 1) wait for JDK1.4: use JDK 1.4's new asynchronous IO APIs: http://java.sun.com/j2se/1.4/docs/guide/nio/index.html 2) limit scalability: use lots of threads that block on the JDK 1.0-1.3 synchronous IO methods 3) limit portability: use a native library that implements the asynchronous IO functions you need (either custom-written or one of several that are available) :-( kb "Wangerin, David L" wrote: > > Hello, > > I've been working on a simulation server that accepts clients over a network > and thus needs something like the python select module. So far as I an > tell, select does not work with jython because of the limitation of the JVM. > Since the simulator will accept an undetermined number of clients, I can't > just use sockets (or at least I haven't found an easy way to do this). > > Are there any existing workarounds to get the effect of using a select > module? If possible, it should be compatible with python (but this is not a > real requirement). Thanks, and congratulations on the progress and success > of jython! > > David Wangerin... > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev |