服务器应用程序速度 - Java与C ++ [英] Server app speed - Java vs C++

查看:73
本文介绍了服务器应用程序速度 - Java与C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪个通常更快 - 一个Java服务器应用程序或一个C ++服务器

应用程序?

解决方案

Davey写道:

哪个通常更快 - 一个Java服务器应用程序或一个C ++服务器
应用程序?




更快什么? C ++运行时性能通常是优越的,无论目前的时代精神是什么,出于性能原因,没有人应该避免使用Java

。但是如果你在谈论一个长期运行的多线程,I / O绑定的应用程序,例如:一个Web服务器,Java

应用程序可能实际上更快,几乎肯定会更快开发。


< blockquote>Jeff Schwab < JE ************ @ rcn.com>在消息中写道

news:uK ******************** @ rcn.net ...

Davey写道:

哪个通常更快 - 一个Java服务器应用程序或一个C ++服务器
应用程序?
更快的是什么? C ++运行时性能通常是优越的,
无论当前的时代精神是什么,出于性能原因,没有人应该避免使用Java。




感谢您的回答。

但是,如果您正在谈论一个长期运行的,多线程,I / O绑定的应用程序,例如一个网络服务器,


是的,我在谈论客户端服务器的服务器端组件

应用程序。它将涉及从数据库中读取数据并根据来自这些应用程序的请求将

信息发送到客户端应用程序。

Java应用程序可能实际上更快,几乎肯定会
加快开发速度。




好​​的,谢谢。


Davey写道:

Jeff Schwab < JE ************ @ rcn.com>在消息中写道
新闻:英国******************** @ rcn.net ...

戴维写道:

哪个通常更快 - 一个Java服务器应用程序或一个C ++服务器
应用程序?



更快什么? C ++运行时性能通常是优越的,
无论当前的时代精神是什么,出于性能原因,没有人应该避免使用Java。



谢谢你答案。

但是如果你在谈论一个长期运行的,多线程的,I / O绑定的应用程序,例如$ web $>是的,我在谈论客户端服它将涉及从数据库中读取数据并根据来自这些应用程序的请求将
信息发送到客户端应用程序。

Java应用程序可能实际上更快,几乎肯定会更快开发。



好​​的,谢谢。



当C ++表现不佳时,它崩溃了。当java表现不好时,它的b / b很难让它本地化或可恢复。


Java在服务器端足够快,特别是在数据库< br $> b $ b可能是瓶颈。


速度的差异并不能弥补java的安全性。


Which is typically faster - a Java server application or a C++ server
application?

解决方案

Davey wrote:

Which is typically faster - a Java server application or a C++ server
application?



Faster at what? C++ run-time performance is generally superior,
regardless of the current zeitgeist that "nobody should be avoiding Java
for performance reasons." But if you''re talking about a long-running,
multithreaded, I/O-bound application, e.g. a web server, the Java
application might actually be faster, and almost certainly will be
faster to develop.


"Jeff Schwab" <je************@rcn.com> wrote in message
news:uK********************@rcn.net...

Davey wrote:

Which is typically faster - a Java server application or a C++ server
application?
Faster at what? C++ run-time performance is generally superior,
regardless of the current zeitgeist that "nobody should be avoiding Java
for performance reasons."



Thanks for the answer.
But if you''re talking about a long-running, multithreaded, I/O-bound
application, e.g. a web server,
Yes, I''m talking about the server-side component of a client-server
application. It will involve reading data from a database and sending the
information to clients apps depending on requests from those apps.
the Java application might actually be faster, and almost certainly will
be faster to develop.



OK, thanks.


Davey wrote:

"Jeff Schwab" <je************@rcn.com> wrote in message
news:uK********************@rcn.net...

Davey wrote:

Which is typically faster - a Java server application or a C++ server
application?



Faster at what? C++ run-time performance is generally superior,
regardless of the current zeitgeist that "nobody should be avoiding Java
for performance reasons."


Thanks for the answer.

But if you''re talking about a long-running, multithreaded, I/O-bound
application, e.g. a web server,


Yes, I''m talking about the server-side component of a client-server
application. It will involve reading data from a database and sending the
information to clients apps depending on requests from those apps.

the Java application might actually be faster, and almost certainly will
be faster to develop.


OK, thanks.


When C++ behaves badly, it crashes. When java behaves badly, its
not hard to make it local or recoverable.

Java is fast enough on the server side, especially where the database is
likely to be the bottleneck.

The difference in speed doesn''t make up for the added safety of java.


这篇关于服务器应用程序速度 - Java与C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆