The shared memory is used by 2 process with shm_open and mmap.
The shared memory is an 16-bit array.
The application is run in an arm 32bit embedded Linux.
My understanding is since accessing each element is independent and atomic, to protect the sharing memory with complex mutex is unnecessary inefficient.