I wam working on the operating systems and want guidance for its concepts
$10-30 USD
Opravljeno
Objavljeno pred skoraj 3 leti
$10-30 USD
Plačilo ob dostavi
Synchronizing Threads with POSIX Semaphores and Mutex
Posix semaphores are easy to use
sem_init, sem_wait, sem_post, sem_getvalue, sem_destroy
The program wrongcount.c creates two new threads, both of which increment a global
variable called COUNT exactly ITERAT, with ITERAT = 1,000,000. But the program produces
unexpected results.
Dear client,
I read careful your description.
I have more exp POSIX Semaphores and Mutex(IPC).
I read your code and I'm sure can synchognize your data very fast.
let's message we will discuss that.