Shared Memory Object Access
| vvadan (17) | |||
| Hi iam a newbie to C++ I have a problem, pls give me a solution I have an object in the shared memory which encapsulates an array of 6 objects. I want to acess one of the objects in the array. If the first object in the array is already locked by a process, i want to get the second object and so on. Please tell me how to do this and please let me know, how to check whether an object in the array is already locked by some process or it is free to access? Thanks in Advance Vadan | |||
| Zaita (1450) | |||
| If your new to C++, why are you looking at Inter-process communication? | |||
| vvadan (17) | |||
| Its a part of my application development | |||
| Zaita (1450) | |||
| Multi-Process and Multi-Threaded development is extremely difficult. But you have to lock the entire array. You cannot lock individual objects. | |||
This topic is archived - New replies not allowed.
