/*
 * You may freely copy, distribute and reuse the code in this example.
 * Apple Computer, Inc. disclaims any warranty of any kind, expressed or implied,
 * as to its fitness for any particular use.  This disclaimer applies to all
 * source files in this example.
 */

#import <Foundation/Foundation.h>
#include "/opt/dce/include/pthread.h"

static void *initialFunction (void *unused) {
        pthread_exit(0);
        return NULL; // to shut the compiler up
}

int main (int argc, const char *argv[]) {
        float     a=1.0, b=2.0, c=3.0, d=4.0, sum=10.0;
        pthread_t thread;

        pthread_create (&thread, pthread_attr_default, initialFunction, NULL);

        printf ("%g\n", sum );
        pthread_yield ();
        printf ("%g\n", sum );

        exit (0);
}
