Threads, Performance improvement