From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,7244cea9c58d559a X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,7244cea9c58d559a X-Google-Attributes: gid1164f8,public X-Google-Thread: 10cebf,7244cea9c58d559a X-Google-Attributes: gid10cebf,public X-Google-ArrivalTime: 1993-12-30 13:35:30 PST Xref: gmd.de comp.os.vms:37930 comp.sys.dec:12618 comp.sys.dec.micro:1382 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.intercon.com!udel!news.sprintlink.net!crash!cmkrnl!jeh From: jeh@cmkrnl.com (Jamie Hanrahan, Kernel Mode Systems) Newsgroups: comp.os.vms,comp.sys.dec,comp.sys.dec.micro Subject: Re: Help! How can i create a subprocess to run a subroutine of the main program Message-ID: <1993Dec30.103429.3298@cmkrnl> Date: 30 Dec 93 10:34:28 PDT References: <1993Dec30.155802.21545@cs.uah.edu> Organization: Kernel Mode Systems, San Diego, CA 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