LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-10-2007, 06:41 AM   #1
culin
Member
 
Registered: Sep 2006
Distribution: Fedora Core 10
Posts: 254

Rep: Reputation: 32
tell to another process....


Hi all,
i have a question here.....say
i have a process "A"( a .c file having main()) which contains a variable named "flag"...
now i want to write an inteface function that is provided by process "A" which will be placed in library..... such that other processes say B and C (placed in other directories each having a main )can use this function..... so if i want to use the variable "flag"'s value( of process "A")( or to change that value) in the interface function....how to do that ?? is that possible.. ?? will that make sense ??
thanks...

Last edited by culin; 04-10-2007 at 06:45 AM.
 
Old 04-10-2007, 10:28 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Not a lot about your question makes sense, even if I do understand the question. However, what I believe you are attempting to describe falls under the category of Inter Process Communication, or IPC. There are many good resources on the web that describe the workings of IPC, two of my favorites being http://www.ecst.csuchico.edu/~beej/guide/ipc/, and http://www.cs.cf.ac.uk/Dave/C/node23...00000000000000
Read these and if they do not answer your question, try to rephrase your question and ask again.

--- rod.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM
Need to install process at end of boot process ch485de Linux - Newbie 5 12-07-2006 05:47 PM
child process usses same amount of ram as parent process socialjazz Programming 7 10-19-2006 05:48 PM
Process Table-Process Control Block sarahmencer Linux - General 1 01-09-2006 09:14 PM
Bash Scripting - child process affecting parent process mthaddon Linux - General 1 05-02-2004 01:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration