PThread programming: Writing a program to join on ten threads for calculating 0-9999. Each thread calculates the sum of 1000 numbers.

a) Define thread function
b) Create threads
c) Join threads
d) Perform calculations