Apache Tomcat Native 1.2.2 发布
引用来自“eechen”的评论是C给Java擦屁股的产物吗?引用来自“vyong”的评论
这只是通过暴露的c的接口去调用操作系统的io响应复用组件(比如epoll, iocp)来提高io处理性能,凡io操作都是操作系统调用,这与语言无关,懂吗? 只是操作系统暴露api的时候的就是以c为插座来设计的,要用它你就得用c的插头,明白了吗?
附带一句,用io操作来比较语言的能力,这是很幼稚的行为。另外,phper要善于知错认错,不要动不动就天下无敌,死要面子活受罪。
引用来自“eechen”的评论
问题是JVM为什么不在网络底层自行调用系统的epoll呢,然后暴露给上层一个统一的接口?这作何解释?不要讲jvm如何设计,如果要说,你可以换成java,java api为何要这么设计,你可以去问JCP和oracle. java6开始nio包的实现就是基于epoll的。
摘一段tomcat apr的说明,自己看吧。
Tomcat can use the Apache Portable Runtime to provide superior scalability, performance, and better integration with native server technologies. The Apache Portable Runtime is a highly portable library that is at the heart of Apache HTTP Server 2.x. APR has many uses, including access to advanced IO functionality (such as sendfile, epoll and OpenSSL), OS level functionality (random number generation, system status, etc), and native process handling (shared memory, NT pipes and Unix sockets).
页:
[1]