Multithreading in Processing

Maybe I cause some confusion. Let me try to clarify

Is it acceptable that

  1. You first check row 0 column 0 for alive neighbours and next update the frame.
  2. Next check cell row 0 column 1 for alive neighbours and next update the frame.
  3. Next check cell row 0 column 2 for alive neighbours and next update the frame.
    And so on.
    Once you have checked all cells in row 0 that way, move to row 1. Next to row 2 etc. Once you have done all rows, start at row 0 again

Can you post a basic example; it does not have to refresh the frame. At this moment I do not know what countLiveNeighbors and inArray do and how much time they take.