In the remainder of this section, we describe basic thread creation using these three thread libraries. As an illustrative example,
we design a multi-threaded program that performs the summation of a non-negative integer in a separate thread using the well-known summation function: