Guest User

Untitled

a guest
Nov 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. void thread1(void )
  2. {
  3.     while (a);
  4.     printf("Got out");
  5. }
  6.  
  7. void thread2()
  8. {
  9.     while (1)
  10.         a =0;
  11. }
  12.  
  13. main ()
  14. {
  15.     pthread_create (thread1);
  16.     pthread_create (thread2);
  17. }
Add Comment
Please, Sign In to add comment