Two-Dimensional Mesh Networks -- Feedback Control with Prediction for Thread Allocation