Schemik

Reading the RSS-Feed from freshmeat.net, I noticed a project named Schemik. This project seems to aim what my simple thoughts on distributing the calculation of processes were about. Strangely, it’s using the same example as I did – the calculation of fibonacci-numbers.

$ ./schemik -t 10 -c "(define (fib x) (if (< x 3) 1 (+ (fib (- x 1)) (fib (- x 2))))) (display (fib 30))"
832040

in fact, it starts even 12 threads:

tester  14378  174  8.8 373984 273628 pts/2   -    20:06   0:05 ./schemik -t 10 -c (define (fib x) (if (< x 3) 1 (+ (fib (- x 1)) (fib
tester      -  0.0    -      -     - -        Sl+  20:06   0:00 -
tester       - 16.0    -      -     - -        Rl+  20:06   0:00 -
tester       - 16.0    -      -     - -        Rl+  20:06   0:00 -
tester      - 15.3    -      -     - -        Rl+  20:06   0:00 -
tester       - 15.3    -      -     - -        Rl+  20:06   0:00 -
tester       - 16.0    -      -     - -        Rl+  20:06   0:00 -
tester       - 16.0    -      -     - -        Rl+  20:06   0:00 -
tester       - 15.3    -      -     - -        Rl+  20:06   0:00 -
tester       - 19.0    -      -     - -        Rl+  20:06   0:00 -
tester       - 20.0    -      -     - -        Rl+  20:06   0:00 -
tester       - 16.0    -      -     - -        Rl+  20:06   0:00 -
tester       - 12.0    -      -     - -        Rl+  20:06   0:00 -

Looking a little at the code, I noticed, that this one seems to use mutexes rather than sync-access. I am not sure if this gets fast enough. But I actually dont know. I have no expieriences with this. I just thought that – at least when it really has to calculate much – syscalls can slow the whole thing down drastically.

Schreibe einen Kommentar

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s

%d Bloggern gefällt das: