[Top] [All Lists]

pthread support!!

To: "LinuxKernelMailList" <>, "LinuxEmbeddedMailList" <>, "MipsMailList" <>
Subject: pthread support!!
From: "Greeen-III" <>
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
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, 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.
#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,
      NULL );
 pthread_join( MyThread, NULL);
 return 1;
<Prev in Thread] Current Thread [Next in Thread>
  • pthread support!!, Greeen-III <=