requirement of the thread probelm