服务器应用程序速度

编程入门 行业动态 更新时间:2024-10-26 07:24:54
本文介绍了服务器应用程序速度 - Java与C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

解决方案

Davey写道:

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

更快什么? C ++运行时性能通常是优越的,无论目前的时代精神是什么,出于性能原因,没有人应该避免使用Java 。但是如果你在谈论一个长期运行的多线程,I / O绑定的应用程序,例如:一个Web服务器,Java 应用程序可能实际上更快,几乎肯定会更快开发。

Jeff Schwab < JE ************ @ rcn>在消息中写道 news:uK ******************** @ rcn ...

Davey写道:

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

感谢您的回答。 但是,如果您正在谈论一个长期运行的,多线程,I / O绑定的应用程序,例如一个网络服务器, 是的,我在谈论客户端服务器的服务器端组件 应用程序。它将涉及从数据库中读取数据并根据来自这些应用程序的请求将 信息发送到客户端应用程序。 Java应用程序可能实际上更快,几乎肯定会加快开发速度。

好​​的,谢谢。

Davey写道:

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

戴维写道:

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

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

谢谢你答案。

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

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

好​​的,谢谢。

当C ++表现不佳时,它崩溃了。当java表现不好时,它的b / b很难让它本地化或可恢复。 Java在服务器端足够快,特别是在数据库 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> wrote in message news:uK********************@rcn...

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> wrote in message news:uK********************@rcn...

Davey wrote:

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

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

Thanks for the answer.

But if you''re talking about a long-running, multithreaded, I/O-boundapplication, 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 willbe 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.

更多推荐

服务器应用程序速度

本文发布于:2023-07-27 14:08:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222776.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   速度   服务器

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!