Question: TASK 2 : Calculating Pi using Leibniz formula and multithreading ( 1 5 % - 1 0 0 marks ) The Leibniz formula is an

TASK 2: Calculating Pi using Leibniz formula and multithreading (15%-100 marks)
The Leibniz formula is an infinite series method of calculating Pi. The formula is a very simple way of
calculating Pi, however, it takes a large amount of iterations to produce a low precision value of .
This task requires a large amount of computation and therefore it is vital that you use multithreading
to speed up the program. Below is the Leibniz formula:
As the series can be iterated infinite number of times, your program should allow the user to take in
2 inputs; the first is the number of iterations and the second is the number of threads the user would
like to use. This means that the slicing of workload needs to be dynamic.
Calculating Pi using Leibniz formula (20 marks)
Using multithreading with appropriate slicing (60 marks)
Correct value of Pi printed out depending on iteration count (20 marks) in c programming
 TASK 2: Calculating Pi using Leibniz formula and multithreading (15%-100 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!