Question: Hi, I have onbe question about using Java with Akka Actors Develop an actor program for computing Fibonacci numbers concurrently. Particularly, create an actor which
Hi, I have onbe question about using Java with Akka Actors
Develop an actor program for computing Fibonacci numbers concurrently. Particularly, create an actor which receives a request for a particular Fibonacci number from a client actor. If it is one of the base cases, the actor replies with a message containing the answer; otherwise, it creates the two sub-problems you would normally create in a recursive implementation. It then creates two new (Fibonacci) actors, and hands one subproblem to each. Once it has received replies from these actors, it adds them to produce its result, and sends it back to the computation's client.
Thanks!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
