Tibor17 commented on issue #240: [SUREFIRE-1658] TCP/IP Channel for forked 
Surefire JVM. Extensions API and SPI. Polymorphism for remote and local process 
communication.
URL: https://github.com/apache/maven-surefire/pull/240#issuecomment-552061820
 
 
   @rpdai 
   Currently we use `java.nio.channels.AsynchronousServerSocketChannel` but we 
need to have 2 blocking operations `client.write( bb ).get()` and `client.read( 
bb ).get()`, and one non-blocking `accept`.
   The read and write uses another thread in the background.
   I think using `java.nio.channels.ServerSocketChannel` the number of used 
threads would be smaller by those two running in the background in JVM. We 
still need to have another two application threads in both alternatives.
   So with `AsynchronousServerSocketChannel` there will be 4 threads. And only 
2 threads with the `ServerSocketChannel`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to