malloc() and spinlocks
Wolfram Gloger
Wolfram.Gloger@dent.med.uni-muenchen.de
Mon Jan 13 13:24:00 GMT 2003
> The reason I don't like this patch is that spinlocks do not work in RT
> processes. Even with multiple arenas you can get into a situation where
> nothing works.
Are you sure? The patch doesn't contain pure spinlocks;
__sched_yield() is called after N lock attempts. I can't see a
situation where deadlock could occur with the patch and would not
occur with mutexes.
> This is why the nptl version uses futexes and because we
> cannot depend on futexes for the LinuxThreads version we should not add it.
That of course is also my opinion.
Regards,
Wolfram.
More information about the Libc-alpha
mailing list