Home » Infrastructure » Linux » parallel program execution!!
parallel program execution!! [message #133664] Sun, 21 August 2005 01:07 Go to next message
vishamr2000
Messages: 18
Registered: April 2005
Junior Member
Hi to all,

My problem is as follows: There are actually two programs. func1() is found in Program1 (code found in the kernel) and there is Program2 that I have written. I want to execute Program2 everytime func1() in Program1 is executed. But func1() must not wait for Program2 to return. It should continue its execution after it signal Program2 to start executing. How can I achieve that?

Any input will be very much appreciated..

Warm regards,
Visham
Re: parallel program execution!! [message #133794 is a reply to message #133664] Mon, 22 August 2005 04:56 Go to previous messageGo to next message
Frank Naude
Messages: 4579
Registered: April 1998
Senior Member
Do a "man fork" form the Linux command line.

Best regards.

Frank
Re: parallel program execution!! [message #133803 is a reply to message #133794] Mon, 22 August 2005 05:12 Go to previous message
vishamr2000
Messages: 18
Registered: April 2005
Junior Member
Hi frank,

fork creates a child process...it's takes up too much resources (memory n time)..func1() in Program1 is executed many times (may be thousands). I actually want a kind of signal to be raised by func1() to Program2.After it sends the signal, func1() doesn't care abt what happens to that signal nor shud the signal return anything to func1(). func1() kind of sends and forgets about the signal.

How can I do that?

Pls help...

Warm regards,
Visham
Previous Topic: what is the parameters need to be mentioned when creating a Oracle9i database on Redhat Linux9
Next Topic: creating multiple databases...?
Goto Forum:
  


Current Time: Tue Apr 16 16:39:22 CDT 2024