N
Nwallins
# file 1
require 'drb/drb'
require 'thread'
DRb.start_service("druby://:1234", Hash.new.extend(DRbUndumped))
DRb.thread.join
# EOF
# file 2
require 'drb/drb'
d = DRbObject.new_with_uri("druby://:1234")
d[0] = 'zero'
d[0] #=> "zero"
d[0].slice!(0, 1)
d[0] #=> "zero"
# file 3
h = Hash.new
h[0] = 'zero'
h[0].slice!(0, 1)
h[0] #=> "ero"
# how can I change the state of the distributed hash's values?
require 'drb/drb'
require 'thread'
DRb.start_service("druby://:1234", Hash.new.extend(DRbUndumped))
DRb.thread.join
# EOF
# file 2
require 'drb/drb'
d = DRbObject.new_with_uri("druby://:1234")
d[0] = 'zero'
d[0] #=> "zero"
d[0].slice!(0, 1)
d[0] #=> "zero"
# file 3
h = Hash.new
h[0] = 'zero'
h[0].slice!(0, 1)
h[0] #=> "ero"
# how can I change the state of the distributed hash's values?