[Solved] Why do threads not work properly?
There are quite a few mistakes: First, you’re passing pointer to int random but in the thread you convert the argument (pointer) to the number. Either you have to cast the int random to a pointer or in the thread cast args to long * and read the memory from that pointer. The latter will … Read more