What is the difference between Tomcat's BIO Connector and NIO Connector?

前端 未结 4 1824
囚心锁ツ
囚心锁ツ 2020-12-02 05:51

I would like to know the internals of the tomcat NIO connector. How exactly are threads used when we create a servlet that implements CometProcessor?Is it still one thread p

4条回答
  •  我在风中等你
    2020-12-02 06:57

    Adding late to this discussion - In this context of performance comparisons between blocking IO and Asynchronous NIO - an excellent read is "Old way of writing servers is new". In summary below thread per connection model was found to be better performing and easy to write as compared to the NIO version - contrary to the popular belief.

提交回复
热议问题