Logo AND Algorithmique Numérique Distribuée

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