|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjactor.Actor
jactor.Fibo
public class Fibo
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 |
---|
int val
Constructor Detail |
---|
public Fibo(int r, Actor c)
Method Detail |
---|
public void handleMessage(Message m)
handleMessage
in class Actor
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |