change pthread operation and add pf_ring