English 中文(简体)
在Schala的赞同模式背景下的服装期
原标题:Clojure futures in context of Scala s concurrency models

在暴露于cal形器和衣物前途之后,我觉得这两种语言都非常支持多种核心数据处理。

然而,我仍然未能确定两种模式的一致特点和利弊之间的实际工程差异。 这些语言是否自满,或者在对待同时进行的程序摘要方面加以反对?

第二,关于大数据问题,这并不明确, s群社区是否继续明确支持Hadoop(因为衣着社区显然确实如此)。 Scala开发商如何与原状生态系统相联?

问题回答

一些解决办法得到代理人/行为者的妥善解决,有些解决办法没有解决。 这种区别实际上并不比更具体地涉及一般解决办法类别中的特定问题。 这是一种(非常简短的)比较法者/代理人诉案。 提及试图澄清该工具必须适合一致的问题。

Actors excel in distributed situation where no data needs to be concurrently modified. If your problem can be expressed purely by passing messages then actors will do the trick. Actors work poorly where they need to modify several related data structures at the same time. The canonical example of this being moving money between bank accounts.

Clojure s refs are a great solution to the problem of many threads needing to modify the same thing at the same time. They excel at shared memory multi-processor systems like today s PCs and Servers. In addition to the Bank account example, Rich Hickey (the author of clojure) uses the example of a baseball game to explain why this is important. If you wanted to use actors to represent a baseball game then before you moved the ball, all the fans would have to send it a message asking it where it was... and if they wanted to watch a player catching the ball things get even more complex.

衣物有木.,使写作的 had体工作看起来像书写衣物一样很多。

行为者提供了一种办法,可以处理在试图使多个条read合起来时必然会出现的互联和同步控制。 每个行为者都有一个信息问题,以便随时处理,以避免需要包括明确的锁。 在这种情况下,未来提供了一种办法,可以等待行为者的答复。

就Hadoop而言,Twitter刚刚释放了一个专门针对Hadoop的图书馆,称为Scalding,但只要该图书馆是为联合考试委员会撰写的,它就应当使用两种语文。





相关问题
Need help with web application settings [closed]

Pls give me the solutions for this two problem, which i was asked recently in interview. Prob1: Suppose I have application with 10 admin, so they can change the data anytime their having own userid ...

AutoResetEvent, ManualResetEvent vs Monitor

Lets say I have to orchestrate a synchronization algorithm in .Net 3.5 SP1 and any of the synchronization primitives listed in the title fit perfectly for the task. From a performance perspective, is ...

PHP and Concurrency

I ve been doing some web development work in PHP recently which has led me to study up on the language in general. So far I have not needed to use it to interact with a database, but I know it ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

Prevent Concurrent Editing of a List Item

In Sharepoint MOSS multiple users can edit the same item in a sharepoint list at the same time…the first person to save their edit “wins”. Is there a way to prevent this, to lock the list item while ...

How to properly catch RuntimeExceptions from Executors?

Say that I have the following code: ExecutorService executor = Executors.newSingleThreadExecutor(); executor.execute(myRunnable); Now, if myRunnable throws a RuntimeExcpetion, how can I catch it? ...

Concurrent modification whilst traversing a ruby Hash

Suppose you had this: def wipeProduct(hash, nameToDelete) hash.each do |i| key = i[0] productName = i[1].first hash.delete(key) if productName==nameToDelete end end I m not sure it ...

热门标签