Consider the following multi-threaded code for computing Fibonnaci numbers. Which of the following are possible return v
Posted: Sun May 15, 2022 9:58 am
Consider the following multi-threaded code for computing Fibonnaci numbers. Which of the following are possible return values for ParallelFibonnaci(4)? ParallelFibonnaci(n) if n < 3 return 1 B = zero array of length n parallel for i = 1 ton B = 1 for i = 3 ton spawn B = B[i-1] + B[i-2] return B[n] A. O B. 1 OOOO C. 2 D. 3