Questions tagged as 'pthreads'

0
answers

Different behaviors between Linux and Windows using threads (pthreads)

I'm using the linux pthreads library to try the threads features, the code below prints 5 messages on the screen for each thread, each thread waits its turn to display the message controlled using the semaphores, in Windows it works perfectly, h...
asked by 15.03.2018 / 20:11
0
answers

Multiple queries in parallel with PHP in API

Good morning. I am creating a script that queries an API. As the data inside the API became larger the requests needed to be split then for a query sometimes I have to query the API 4 or 5 times. I got in touch with the API support I use and was...
asked by 31.10.2018 / 13:56
1
answer

Error code repeating values in threads?

#include <pthread.h> #include <stdio.h> void *Operacao(void *soma) { int n; printf(“Digite o primeiro numero:”); scanf("%d", &n); printf(“Digite o segundo numero:”); scanf("%d", &n); printf(“A soma e:%d”, n + n); pthread_exit...
asked by 06.05.2018 / 03:35