Question: Splitting the data - write a thread function to initialize int 2D array x (NxN) so that each thread initializes its portion with i+j in each slot. Note that i and j relate to the entire array.
Each thread operates on a strip independently, and your program will execute with nthreads (which is a global value). Suppose N is a multiple of nthreads.