Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ruby examples
[simgrid.git] / examples / ruby / PingPong.tesh
1 #PingPong Example
2 $ ruby PingPong.rb
3 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] Hello from Sender
4 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] Host count :1
5 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] sender time :0.0
6 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] task created :PingTask
7 > [Bellevue:Receiver:(2) 0.000000] [ruby/INFO] Hello from Receiver
8 > [Inmos:Sender:(1) 0.015501] [ruby/INFO] Bye!!
9 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] Got at time: 0.0155013008533275
10 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] Was sent at time 0.0
11 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] Communication Time: 0.0155013008533275
12 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] --- bw 6451071490.46357 ----
13 > [Bellevue:Receiver:(2) 0.015501] [ruby/INFO] Bye!!