I'm executing following python code to connect to remote DB server, I can see the syscalls getting timed out at the following location, so it take unu ...
I'm executing following python code to connect to remote DB server, I can see the syscalls getting timed out at the following location, so it take unu ...
I want to create thread via linux clone() and and wait for it to finish. Such a seemingly simple case has become difficult for me because I don’t know ...
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 ...
In C++20, we got the capability to sleep on atomic variables, waiting for their value to change. We do so by using the std::atomic::wait method. Unfo ...
I have one "server" process a and potentially multiple "client" processes b. The server creates a shared memory file (shm_open) containing a pthread_m ...
In Linux, futexs have the following signature long futex(uint32_t *uaddr, int futex_op, uint32_t val, const struct timespec *timeout), so I can say sy ...
I have two questions: In the general case is it safe to use an atomic as a T and switch between them interchangeably? In the case of a futex is ...
I've got a performance problem with a large application written in C++. The program uses only 150% CPU, while the server is a 24-core hyperthreaded EP ...
This is the follow-up of the question How is std::atomic<T>::notify_all ordered? What would be the answer to that question, if I use WaitOnAddr ...
I am using Altera Cyclone V FPGA with ARM 7 core, I am running a application with 7 thread with mutexes. The application randomly hangs after 1hr or ...
The futex man page provides a simple demo, but I can't get the result as the page described, the result seems to be deadlock on my machine (linux 5.2. ...
I am trying to synchronize 5 processes, they have to be created from the same father. I tried inserting 5 waitpids to wait for the child process to e ...
Hardware provides atomic instructions like test-and-set, compare-and-swap, load-linked-store-conditional. Are these privileged instructions? That is, ...
I am investigating Intel CPU atomic features on my Haswell CPU (a 4/8 core 2.3-3.9ghz i7-4790M), and am finding it really hard to construct eg. reliab ...
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 ...
Upon Running strace on a Java Application I notice some long time the syscall(mostly futex). I really want to understand the wait on futex is for w ...
This question is similar to How to call a function on a thread's creation and exit? but more specific. In another multi-process shared memory project ...
You'll have to pardon the rather large-ish block of code, but I believe this is a near-minimal reproduction of my problem. The problem is not isolated ...
I've use pthread for multithreded program and I've got the following situation. When I run the code without sleep command it causes error at run time, ...
I have a simple Monte-Carlo Pi computation program. I tried running it on 2 different boxes(same hardware with slightly different kernel versions). I ...