Assign particles to threads