Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > global variable is shared in shared library

Reply
Thread Tools

global variable is shared in shared library

 
 
ankugoe7@gmail.com
Guest
Posts: n/a
 
      07-15-2008
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.

 
Reply With Quote
 
 
 
 
santosh
Guest
Posts: n/a
 
      07-15-2008
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FWSM/PIX and Dynamic PAT using global IP range vs. global interface vs. global IP Hoffa Cisco 1 10-25-2006 06:50 PM
FWSM/PIX and Dynamic PAT using global IP range vs. global interface vs. global IP Hoffa Cisco 0 10-25-2006 01:04 PM
Global Shared functions, shared variables Imran Aziz ASP .Net 1 08-22-2005 06:43 PM
Is mymodule.myvariable a 'global'? (What is proper definition of 'global variable'?) seberino@spawar.navy.mil Python 1 08-21-2005 09:21 PM
Use Global Variable or Global Struct??? Bryan Parkoff C++ 2 11-27-2004 02:46 AM



Advertisments