rabbitekk312

Untitled

Dec 14th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. {
  2.     int A[N][N];
  3.     pthread_t serwer[N], klient;
  4.  
  5.     printf("Podaj macierz %dx%d\n", N, N);
  6.     for(int i = 0; i < N; i++)
  7.         for(int j = 0; j < N; j++)
  8.             scanf("%d", &A[i][j]);
  9.  
  10.     for(int i = 0; i < N; i++)
  11.         pthread_create(&serwer[i], NULL, serwer, &A[i]);
  12.  
  13.     pthread_create(&klient, NULL, klient, NULL);
  14.  
  15. }
Add Comment
Please, Sign In to add comment