* Help! How can i create a subprocess to run a subroutine of the main program
@ 1993-12-30 15:58 Venkata Chaganti
1993-12-30 16:43 ` Steve Lionel
1993-12-30 17:34 ` Jamie Hanrahan, Kernel Mode Systems
0 siblings, 2 replies; 3+ messages in thread
From: Venkata Chaganti @ 1993-12-30 15:58 UTC (permalink / raw)
HI VMS GURUS,
WE have VAX/VMS V5.5-2 Running on differnet VAX stations clustered.
I want to know how can i do the following.
HOW can i create a subprocess parallel to the main process and call a
subrotine and execute the subroutine using the subprocess.
(I found LIB$SPAWN() can be called to create the subprocess and call
run executable program out of the main program). I need to call the
subroutine of the same program.
For example in the x-window program
main process do the drawing functions.
sub process checks for the expose event and exposes the window.
main process subprocess
draw line check expose
draw circle (It should check irrespective of the
main process all the time utill main
process killed).
I appriciate if some one can provide an example.
HAPPY NEW YEAR
Thanks for your help
chaganti, V.S
vchagant@uahcs2.cs.uah.edu
or
chaganti@ebs330.eb.uah.edu
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Help! How can i create a subprocess to run a subroutine of the main program
1993-12-30 15:58 Help! How can i create a subprocess to run a subroutine of the main program Venkata Chaganti
@ 1993-12-30 16:43 ` Steve Lionel
1993-12-30 17:34 ` Jamie Hanrahan, Kernel Mode Systems
1 sibling, 0 replies; 3+ messages in thread
From: Steve Lionel @ 1993-12-30 16:43 UTC (permalink / raw)
In article <1993Dec30.155802.21545@cs.uah.edu>, vchagant@cs.uah.edu (Venkata Chaganti) writes:
|>
|>HOW can i create a subprocess parallel to the main process and call a
|>subrotine and execute the subroutine using the subprocess.
|> (I found LIB$SPAWN() can be called to create the subprocess and call
|> run executable program out of the main program). I need to call the
|> subroutine of the same program.
I would recommend using the PPL$ (Parallel Processing Library) Run-Time
Library routines. See the PPL$ RTL manual for details.
--
Steve Lionel lionel@quark.enet.dec.com
SDT Languages Group
Digital Equipment Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062 "Free advice is worth every cent"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help! How can i create a subprocess to run a subroutine of the main program
1993-12-30 15:58 Help! How can i create a subprocess to run a subroutine of the main program Venkata Chaganti
1993-12-30 16:43 ` Steve Lionel
@ 1993-12-30 17:34 ` Jamie Hanrahan, Kernel Mode Systems
1 sibling, 0 replies; 3+ messages in thread
From: Jamie Hanrahan, Kernel Mode Systems @ 1993-12-30 17:34 UTC (permalink / raw)
In article <1993Dec30.155802.21545@cs.uah.edu>, vchagant@cs.uah.edu
(Venkata Chaganti) writes:
> I want to know how can i do the following.
>
> HOW can i create a subprocess parallel to the main process and call a
> subrotine and execute the subroutine using the subprocess.
>
> For example in the x-window program
>
> main process do the drawing functions.
> sub process checks for the expose event and exposes the window.
Given your intended use, I'm not sure that you really want a separate process.
Why not just run the subroutine periodically in an AST-driven thread, or use
DECthreads, or ... ? Processes, interprocess context switching,
synchronization, and communication, and most especially process creation,
aren't cheap on VMS.
--- Jamie Hanrahan, Kernel Mode Systems, San Diego CA
Internet: jeh@cmkrnl.com (JH645) Uucp: uunet!cmkrnl!jeh CIS: 74140,2055
Whatever you can do, or dream you can, begin it.
Boldness has genius, power and magic in it. - Goethe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1993-12-30 17:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-30 15:58 Help! How can i create a subprocess to run a subroutine of the main program Venkata Chaganti
1993-12-30 16:43 ` Steve Lionel
1993-12-30 17:34 ` Jamie Hanrahan, Kernel Mode Systems
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox