global variable is shared in shared library

A

ankugoe7

Is it possible to share global variables such that all applications
which use shared libraries can see the changes made to the global
variables by the other applications.
 
S

santosh

Is it possible to share global variables such that all applications
which use shared libraries can see the changes made to the global
variables by the other applications.

You need shared memory or some other form of interprocess communication.
Pure C cannot do what you want except by overly cumbersome ways or my
making system specific assumptions (example: that the system employs no
memory protection etc.). You will get better answers and ideas if you
ask in a group for you system like comp.unix.programmer for UNIX and
clones and comp.os.ms-windows.programmer.win32 for Windows machines.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top