debug Pthread in graingrowth.cpp