Thread (11 messages) 11 messages, 5 authors, 2006-08-29

RE: atomic operations in user space

From: Liu Dave-r63238 <hidden>
Date: 2006-08-29 09:20:44

quoted
2) These mutexes are based on futexes which requires atomic=20
operations in userspace. These are available on most architectures.
Look at
quoted
the glibc code in
nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h for instance.
Use that and your PPC manual to implement your atomic operations.
=20
No matter semaphore or futex, it uses system calls to kernel.  And the
true atomic operation is in kernel not user space.  Maybe=20
it's feasible
for other architectures to do atomic operations directly in=20
user space.
IMHO, not for powerpc.
Are you meaning that we didn't do atomic operations directly in user
space
on powerpc platform ?

-DAve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help