Use of threads