cost 249 ms
Futex and pthreads issue

I'm testing futexes with pthreads. I've written following program: And sometimes it returns 0 as a sum which is proper value but sometimes the retu ...

How could futex_wake return 0

I implemented semaphore using futex. The following program often fails at the assertion in sem_post(). While the return value is supposed to be 1, it ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM