首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 墨尔本模式演示活动对象实例

墨尔本模式演示活动对象实例

  • 资源大小:97.21 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: ruby Pattern concurrency

资 源 简 介

Active Object This is a simple example of the Active Object concurrency pattern. Example code is provided in both Ruby and Java. See http://en.wikipedia.org/wiki/Active_Object This is intended to be used in my talk on Active Object at the Melbourne Patterns group http://melbournepatterns.org/ The example is a contrived one of a domain name reseller selling .com, .com.au, and .co.nz domain names with the restriction that the respective domain name registries (or registrars) only allowing one connection at a time from the reseller. Note that I assume a really simple FIFO scheduler and so do not supply a queue iterator on the Activation Queue, instead I just supply a dequeue method to take the first item off the queue, blocking if the queue is empty. Directory structure: examples: contains example usage in ruby of the classes defined in the other directories. classic: contains ruby clas

文 件 列 表

activeobject
.loadpath
.project
classic
examples
java
README.txt
ruby_intro.rb
UML
variation

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.217356s