Java: Complete code examples of thread-per-connection blocking IO versus NIO?

前端 未结 3 1552
长情又很酷
长情又很酷 2021-01-03 09:21

Ok, I\'m going crazy here. I have been rewriting the NIO code for my server, and running into some real headaches. The bottom line is that getting NIO \"right\" is very ha

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-03 10:14

    You may also want to consider using a higher level framework such as Grizzly instead of using NIO directly. The framework should allow you to concentrate on your use case rather than the subtleties of NIO.

提交回复
热议问题