harmonic.cpp

Multi-Threading Harmonic Summation Example / Test

Source File

All of the routines below are located in the file

example/multi_thread/harmonic.cpp

Contents

Name

Title

harmonic_common

Common Variables Used by Multi-threading Sum of 1/i

harmonic_setup

Set Up Multi-threading Sum of 1/i

harmonic_worker

Do One Thread’s Work for Sum of 1/i

harmonic_takedown

Take Down Multi-threading Sum of 1/i

harmonic_sum

Multi-Threaded Implementation of Summation of 1/i

harmonic_time

Timing Test of Multi-Threaded Summation of 1/i