+# Debug it with this command:
+# make -C ../.. && valgrind ruby MasterSlave.rb --log=ruby.thres:debug 2>&1 | less
+
require 'simgrid'
include MSG
#################################################
class Master < MsgProcess
- def initialize2()
- super()
- end
-
-
# msg_main : that function that will be executed when Running Simulation
def msg_main(args) # args is an array containing arguments for function master
info("Hello From Master")
# Class Slave
#################################################
class Slave < MsgProcess
-
- def initialize()
- super()
- end
-
# msg_main : that function that will be executed when Running Simulation
def msg_main(args)
info("Hello From Slave")