首页 > 其他 > 详细

The difference between Agent and Actor

时间:2015-03-27 16:31:15      阅读:201      评论:0      收藏:0      [点我收藏+]
  • An agent has a value that can be retrieved directly with deref,However an Actor encapsulates state but provides no direct means to access it.
  • An Actor encapsulates behavior; an agent does not(the function that implements an action is provided by the sender)
  • Actors provide sophisticated support for error detection and recovery, Agents‘ error reporting is much more primitive.
  • Actors can be remote; Angents provide no support for distribution
  • Composing actors can deadlock; composing agents cannot.

The difference between Agent and Actor

原文:http://www.cnblogs.com/ydlme/p/4372049.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!