What are effective methods to parallelize operations in a C