extract features using multi threads