FIZZ BUZZ MULTITHREADED
When I noticed JavaScript was not among the languages for today's challenge, I almost gave up but on a second thought, I decided to finish up the race as no knowledge was a waste. Today's challenge was all about Fizz Buzz Multithreaded and Python3 was used to solve this particular Challenge.
PROCEDURE BY BARRIER
Each every thread was apportioned its own loop 1 to n. The loops were advanced in sync using a Barrier whereby holding on for the four (4) threads to extend the barrier before unblocking all the threads. And at that juncture, the loop will carry on while the next number will now be processed by all the four (4) threads while the program will hold back for all the threads to reach the Barrier.
OUTCOME
Top comments (0)