updated
updated
changed shared memory to mmap and fixed lock to be shared