Advertisement
jkavart

Untitled

Apr 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. //car thread asking for direction and num of cars
  2. //tunnel thread is going to wait 5s, change directions,
  3. //main file create tunnel and car thread, do sleep based on arrival time of car
  4. ifstream fin;
  5. fin.open("input2.txt");
  6.  
  7. //my attempt at creating a pthread vector
  8. vector<pthread_t> tid;
  9. pthread_t temp;
  10. tid.push_back(temp);
  11. pthread_create(&tid[0], NULL, car, (void *)carNo);
  12.  
  13. cout<<"test"<<endl;
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement