view sources/root-filesystem/src/thread-hello.c @ 1205:2b3f347dd225

Move sources/native-root to sources/root-filesystem (mostly to make tab completion work better when navigating the source).
author Rob Landley <rob@landley.net>
date Fri, 13 Aug 2010 16:34:07 -0500
parents sources/native-root/src/thread-hello.c@2d5e356580b9
children
line wrap: on
line source

#define __REENTRANT
#include <pthread.h>
#include <stdio.h>
 
void *threadhello(void *unused)
{
  printf("Hello, world!\n");
  return 0;
}
 
int main() {
  pthread_t thready;
  pthread_create(&thready, NULL, &threadhello, NULL);
  usleep(10);
}