Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //car thread asking for direction and num of cars
- //tunnel thread is going to wait 5s, change directions,
- //main file create tunnel and car thread, do sleep based on arrival time of car
- ifstream fin;
- fin.open("input2.txt");
- //my attempt at creating a pthread vector
- vector<pthread_t> tid;
- pthread_t temp;
- tid.push_back(temp);
- pthread_create(&tid[0], NULL, car, (void *)carNo);
- cout<<"test"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement