diff options
Diffstat (limited to 'jni/ruby/sample/drb/dqueue.rb')
-rw-r--r-- | jni/ruby/sample/drb/dqueue.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jni/ruby/sample/drb/dqueue.rb b/jni/ruby/sample/drb/dqueue.rb new file mode 100644 index 0000000..1c8878c --- /dev/null +++ b/jni/ruby/sample/drb/dqueue.rb @@ -0,0 +1,12 @@ +=begin + distributed Ruby --- Queue + Copyright (c) 1999-2000 Masatoshi SEKI +=end + +require 'thread' +require 'drb/drb' + +DRb.start_service(nil, Queue.new) +puts DRb.uri +DRb.thread.join + |