School assignment using multiple threads