summaryrefslogtreecommitdiff
path: root/sample/drb/dqueue.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/drb/dqueue.rb')
-rw-r--r--sample/drb/dqueue.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/sample/drb/dqueue.rb b/sample/drb/dqueue.rb
new file mode 100644
index 0000000..90ec56c
--- /dev/null
+++ b/sample/drb/dqueue.rb
@@ -0,0 +1,13 @@
+=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
+puts '[return] to exit'
+gets
+