N/APosted on - 06/26/2012
If we want the operating system to release a shared segment after stopping all the processes attached to it, it should me marked for deletion. But the problem here is that I want to start a new instance of the program and if I delete the shared segment, the new program will not be able to attach to the segment. Can anybody suggest a way to mark the shared segment for deletion at the same time attached to the segment?
Suggest a way to mark the shared segment for deletion?
In order to release a shared segment, you need to make sure that the process is not being used anywhere. For this you have to delete the process. But there is a way to achieve this shared segment if you set the priorities.
First, go to the task manager and set the priority of the specific process to lowest. This way you will get more time over it. Now star to release the shared segment for the process.
Similarly for any number of processes, you can do this but make sure that you keep the priorities back to normal or restart your computer because sometimes, changing priorities can destabilize the whole system.