23 printf ("Starting thread.\n");
24 pthread_create (&thr
, 0, run_thread
, 0);
26 printf ("Canceling thread.\n");
28 pthread_join (thr
, &result
);
29 if (result
== PTHREAD_CANCELED
)
30 printf ("Thread canceled.\n");
32 printf ("Thread exited.\n");