Thread monitor