Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jeh@cmkrnl.com (Jamie Hanrahan, Kernel Mode Systems)
Subject: Re: Help! How can i create a subprocess to run a subroutine of the main program
Date: 30 Dec 93 10:34:28 PDT	[thread overview]
Message-ID: <1993Dec30.103429.3298@cmkrnl> (raw)
In-Reply-To: 1993Dec30.155802.21545@cs.uah.edu

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


      parent reply	other threads:[~1993-12-30 17:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox