English 中文(简体)
经常投票,或Java RMI?
原标题:Constant polling, or Java RMI?
  • 时间:2012-04-17 19:02:42
  •  标签:
  • java
  • udp
  • rmi

如果我从一个计算机向另一个计算机发送一个包装单,直接通过一个电文网电缆连接,那么它是否更快地在接收计算机上与UDP进行不断的污染,或者将Java RMI用于接收计算机的“give”包装?

我不知道是否有任何业绩变化?

最佳回答

通常更快地进行UDP,因为没有额外确认输电的间接费用,因为不必同时收到收货确认书。

With TCP, there is an acknowledgement transmitted back to the source of the data. Full duplex communications can make the transmission of this acknowledgement occur without disrupting the incoming data stream; however, you do have to wait some amount of time for that acknowledgement to return the the sender, and that sender to process it.

虽然这两台计算机都被认为足以处理数据流处理,但实际世界计算机可能会发现自己从事多重任务,从而可能中断按线速度处理网络交通的能力。 在这种情况下,如果传送计算机不能得到足够迅速的承认(或者接收计算机不能足够快地传送),那么你就可以将不确认的包装单的窗户穷尽,这将导致传送计算机的中断传输,直至确定所传送的内容需要重新发送或接收。

But UDP is no bed of roses, as it s solution to not acknowledging receipt is to allow any packet to disappear without notice at any time. As such, it is ideal for data that doesn t need to be transmitted completely (live voice, if it s dropped it is more important to start with the "now" packet than collect them all), or for data where the retransmission is managed by more efficient application-specific algorithms.

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签