I have question regarding the processes under Linux. It quite difficult to explain. but I will try. Since I am not really very good explaining things
Right, I have got a program which actually maps a register from the /dev/mem to the user space of the memory. And so alter to the register which is down in user memory which gets reflected to the hardware register.
What happened when I try run the same process in two different instances. So for example if "prog1" is the code file which does all the above mentioned job. What happens when I do
In the above case I have two shell running the same program. Will the kernel handle manage to write to the register through mutex control when there are two process pointing to the same memory location.Code:./prog1
It would be difficult for me program to include the mutex around then, since i just get the image of that register into two different memory location when i get mapped through mmap function respectively.
Am I right here?
Thanks a lot guys