Hi all,
 
I try to run the test program which created the thread on MIPS machine.
But It always halt on call libpthread.so.0.
It was suspended when run into the thread function.
Even, "printf" didn't work.
I use the following for the case.
After the kernel load libpthread.so.0, process stopped.
This line "printf("-------> FirstThread\n");" didn't run.
What kind of resource does the pthread need?
 
Any reply is welcome.
Thanks in advance.
                                                                            Green
 
_____________________________________________
 
#include <stdio.h>
#include <pthread.h>
 
int FirstThread(void)
{
 printf("test thread!!");
 return 1;
}
 
int main(void)
{
 pthread_t MyThread;
 
 /* Call Thread */
 printf("-------> FirstThread\n");
 pthread_create(    &MyThread,
       (pthread_attr_t *) NULL,
      (void*)FirstThread,
      NULL );
 pthread_join( MyThread, NULL);
 return 1;
}

Reply via email to