#include #include "common_threads.h" int balance = 0; void* worker(void* arg) { balance++; // unprotected access return NULL; } int main(int argc, char *argv[]) { pthread_t p; Pthread_create(&p, NULL, worker, NULL); balance++; // unprotected access Pthread_join(p, NULL); return 0; }