thresfilter is working with Pthreads