Hello
If you don't know what is futex and linuxthreads-0.9, please, don't reply.
Can I mix in one program futex-based mutex with mutex from linuxthreads-0.8 or -0.9 (which was used in all glibc <=2.2 and in all uClibc) ?
I need interprocess mutex (pshared one, PTHREAD_PROCESS_SHARED).
So, If threads are started and managed by linuxth...
Hi,
We are observing unusual delays in one of our Java apps on a Linux red hat machine while trying to publish to an external MQ queue (It never happened before). Did a quick health check on the box and the CPU/memory usage seems quite alrite. The MQ boxes are quite fine as well. Restarted my java process, no luck! We grabebd a quick str...
I need functionality of do_futex() call in user space outside of lock/unlock context. I.e., I do not need a mutex, but the exact semantics of the kernel call do_futex.
It would seem it should be available in user space, since the intent was to minimize the number of system calls, but I can't link with it.
Or is there a syscall?
Update...
I'm getting a weird error. I implemented these two functions:
int flag_and_sleep(volatile unsigned int *flag)
{
int res = 0;
(*flag) = 1;
res = syscall(__NR_futex, flag, FUTEX_WAIT, 1, NULL, NULL, 0);
if(0 == res && (0 != (*flag)))
die("0 == res && (0 != (*flag))");
return 0;
}
int wake_up_if_any(volatile ...
Hello,
Somebody can tell me an example of using locking mechanism based on futex? (for muticore x86 CPU, CentOS)
Thanks
Dima
...
Looking for a minimal, futex-based implementation of a single-writer/multiple-readers lock requiring no space overhead beyond a single 4-byte futex state variable.
Some background: I have an application which will embed a lock within each of tens to hundreds of millions of small objects. Because of the very fine grained nature of the l...