How To Determine Thread