#include <stdio.h>
#include <pthread.h>

void* worker(void* arg){
    printf("hello, I'm a threading \n"); 
}

int main(){
    pthread_t tid;
    int ret;

    ret = pthread_create(&tid, NULL, worker, NULL);
    if(ret != 0){
        printf("error: 线程创建失败\n");
        return -1;
    }
    printf("the thread id is %lu \n",tid);

    pthread_join(tid, NULL);
    return 0;
}