use pthread in bfstest.cpp but not success