1 #include <libraries/thread.h>
2 #include <proto/thread.h>
6 void *thread_main(void *data
) {
9 printf("thread starting\n");
11 for (i
= 0; i
< 10; i
++) {
12 printf("count: %d\n", i
);
16 printf("thread exiting\n");
21 int main (int argc
, char **argv
) {
22 CreateThread(thread_main
, NULL
);