aplication of thread