linux-mips-fnet
[Top] [All Lists]

pthread support!!

To: "LinuxKernelMailList" <linux-kernel@vger.kernel.org>, "LinuxEmbeddedMailList" <linux-embedded@waste.org>, "MipsMailList" <linux-mips@fnet.fr>
Subject: pthread support!!
From: "Greeen-III" <greeen@iii.org.tw>
Date: Thu, 15 Mar 2001 18:16:01 +0800
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;
}
<Prev in Thread] Current Thread [Next in Thread>
  • pthread support!!, Greeen-III <=