How many threads are needed for this?