I have a 2D array of cells and I need each to run its own pthread.

I have examples where they have created an array of threads e.g. pthread_t tid[CONST]
and run each thread using a for loop.

But in order to know which cell in the 2D array each thread belongs to it would be simple to create a 2D array of threads. Each of these cells change variables in other cells so an index is key.

Is it possible to do something like:

pthread_t tid[CONST1][CONST2]

Thanks