Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Chord: load a platform with appropriate size
[simgrid.git] / examples / ruby / Quicksort.tesh
1 #QuickSort Ruby Example
2
3 $ ruby -I ../../src/bindings/ruby Quicksort.rb
4 > [Inmos:Sender:(1) 0.000000] [ruby/INFO] Hello Bellevue !!, Please !! I need you to help me to sort my table , Here it is :
5 > [1, -2, 45, 67, 87, 76, 89, 56, 78, 3, -4, 99]
6 > [Bellevue:Receiver:(2) 0.000000] [ruby/INFO] Receiving Table from Inmos
7 > [Bellevue:Receiver:(2) 0.030276] [ruby/INFO] Sort Done ... Sending Back the new table
8 > [Inmos:Sender:(1) 0.060552] [ruby/INFO] Greate !! Thx !!
9 > [Inmos:Sender:(1) 0.060552] [ruby/INFO] Here is my table after a quicksort :)
10 > [-4, -2, 1, 3, 45, 56, 67, 76, 78, 87, 89, 99]
11 > [Inmos:Sender:(1) 0.060552] [ruby/INFO] Bye Now :)
12 > [Bellevue:Receiver:(2) 0.060552] [ruby/INFO] Bye lazy Boy!!
13 > Simulation time : 0.0605519589327544