Is there anyone has ever used pthread in android?

I found pthread.h in the android NDK,then I included pthread.h to my code in VS2008.
Then I used cygwin to compile the codes.

It didn’t crash when I run it in Android phone,It create the new thread(return value is right).
But It didn’t go into the thread method (loop method—-the third param of *pthread_create()* ) (I printed something in the method).

Anyone knows how to solve it???

I wouldn’t wonder if the printing what is actually not working. Log I/O is not thread-safe, I think.
Try to simply set a value into a variable. That should work.