Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int signal = 0;
- static int ack = 0;
- t1()
- {
- signal = 1;
- while (!ack);
- }
- t2()
- {
- while(true) {
- if (signal) {
- ack = 1;
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement