summaryrefslogtreecommitdiffstats
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 000000000..90ec56ce6
--- /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
+