jactor
Class Fibo

java.lang.Object
  extended by jactor.Actor
      extended by jactor.Fibo
All Implemented Interfaces:
java.lang.Runnable

public class Fibo
extends Actor

Implementation de l'algo récursif de Fibonacci en parallele Cette réalisation montre l'intéret de la JoinList pour synchroniser deux calculs (C) J. Ferber - Janvier 2000 rappel de fibo: fibo(int n)= if (n <= 2) return 1 else return fibo(n-1) + fibo(n-2)


Field Summary
(package private)  int val
           
 
Fields inherited from class jactor.Actor
debug, living, messages, thread
 
Constructor Summary
Fibo(int r, Actor c)
           
 
Method Summary
 void handleMessage(Message m)
           
 
Methods inherited from class jactor.Actor
defaultHandleMessage, getMessageBoxSize, isDebug, isMessageBoxEmpty, kill, nextMessage, pause, receiveMessage, run, sendMessage, setDebug, waitNextMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

val

int val
Constructor Detail

Fibo

public Fibo(int r,
            Actor c)
Method Detail

handleMessage

public void handleMessage(Message m)
Overrides:
handleMessage in class Actor