UNIX/Linux Programming - May 2021

rand() array
 
I have 7 arrays and 7 threads. I get 7 ID for all threads. ID are different but arrays have the same values. Why? #include <stdio.h> #include <thread> #inclu...
[3 replies] Last: If you don't want unnecessary sleeping, also consider rand_r which can... (by Ganado)
  Archived months: [apr2021] [jun2021]

This is an archived page. To post a new message, go to the current page.