I want to use the lock-free algorithm for shared memory to exclude a mutex. I have some processes in which shared data uses shared memory. If a process blocks a mutex and crashes, all other processes also fail.
I read several articles that implement a blocking algorithm with a linked list. But in my shared memory, I cannot determine the data structure to use in this memory block. I have a pointer to this block.
Therefore, I have no idea how to apply the blocking algorithm in my situation. I need help from you. Thank you and sorry if my English is very bad.
source share