Logo AND Algorithmique Numérique Distribuée

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