title: How to to parallelize the matrix transpose?
body: <p>How to to parallelize the matrix transpose ?</p>
  
  <p>I know that to transpose matrix I must apply something about this:</p>
  
  <pre><code>for (int i = 0; i &lt; matrix.length - 1; i++) {
      for (int j = i + 1; j &lt; matrix[i].length; j++) {
          tmp = matrix[i][j];
          matrix[i][j] = matrix[j][i];
          matrix[j][i] = tmp;
      }
  }
  </code></pre>
  
  <p><em>But how to parallelize this operation, I dont know.</em></p>
  
  <p><strong>I need create N threads to transpose matrix  4n x 4n.</strong></p>