Threads assignement for distributed systems and applications class.