[GitHub] [maven-surefire] 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.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [maven-surefire] 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.

GitBox
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:
[hidden email]


With regards,
Apache Git Services