title: how to share a single shared library(*.so) instance between two applications
body: <p>I currently created a shared library(libshared.so), which contains a variable "a", which will 
      be modified by shared library api. i have two applications app1 and app2. app1 is using 
      shared library api, which changes the value of "a". now simultaneously when app2 is running 
      should see the changed value. 
      This is against the actual usage of shared library, as separate instance of shared 
      library will be created for every application.
      now i want to use a single instance of shared library between two app1 and app2, so that 
      they can see same code and data segment of shared library. 
      Is there any possible way to achieve this, by altering gcc linker flags </p>