thrd_create(&A, (thrd_start_t)&thread, (void *)0);
thrd_create(&B, (thrd_start_t)&thread, (void *)1);
thrd_join(A);
thrd_join(B);
thrd_create(&A, (thrd_start_t)&thread, (void *)0);
thrd_create(&B, (thrd_start_t)&thread, (void *)1);
thrd_join(A);
thrd_join(B);