java - .Net 的客户端和服务器环境是否不同?

标签 java .net performance

最近我听到了这样的说法。有人可以详细说明一下吗?

With client side applications, Java has better performance than .Net. The reason is that .Net environment on the server-side (iis?) is different than its client side. While Java uses the same environment at both ends. Since frameworks performance is optimized mainly on the service side, .Net client side is not as good as .Net server side or Java.

更新:我相信他还提到了.Net 方面的客户端(XP、VISTA)和服务器(Windows 2008 服务器)之间的区别

最佳答案

在客户端操作系统中,您会获得并发垃圾收集器。它的绝对时间较慢,但在用户看来速度更快,因为他们的暂停时间较短。

在服务器操作系统中,您会得到一个串行垃圾收集器。总体上速度更快,但必须暂停应用程序更长时间。

这是旧信息,我不知道它是否仍然正确。

<小时/>

编辑:Java也有客户端和服务器模式。与 .NET 不同,它不依赖于操作系统,而是将其作为命令行参数传递。

<小时/>

编辑 2:来自 2000 年 12 月的 MSDN 杂志

On a multiprocessor system running the server version of the execution engine (MSCorSvr.dll), the managed heap is split into several sections, one per CPU. When a collection is initiated, the collector has one thread per CPU; all threads collect their own sections simultaneously. The workstation version of the execution engine (MSCorWks.dll) doesn't support this feature.

http://msdn.microsoft.com/en-us/magazine/bb985011.aspx

同样,这是旧信息,可能已更改。

关于java - .Net 的客户端和服务器环境是否不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2390234/

相关文章:

java - 无法使用 SplashScreen 和 WebView 启动应用程序

java - 如何使用 Google Json Parsing API (Gson) 来解析我的 json 中的一些动态字段?

java - 为什么我的线程在 Swing 中不能正常工作?

performance - 在 Haskell 中生成十亿个随机 double 的最快方法

python - KDE 在处理大数据时非常慢

java - 为什么正则表达式得到 stackOverFlow

c# - 如何在 N :N relationships? 上触发 MS Dynamic CRM 中的插件

c# - .NET System.IO.BinaryWriter 写入的原始字节是否可由其他平台读取?

c# 数组函数参数传递一维

database - 用于多实体高性能标记的数据库