@utrcgw.utc.com:mbs@ardnt3 (mbs) (03/11/90)
This is my first posting, so my apologies if I am posting this in the wrong location. Also my apologies if this should be obvious or if it has been discussed in depth previously. I have a question regarding Modula-2. What I am trying to do is to write some code to handle multiple processes. The pseudo code would be similar to the following: MODULE test; PROCEDURE ProcessOne; BEGIN LOOP do some stuff and eventually exit loop END Send( Signal_to_Main_task_below ); END ProcessOne; PROCEDURE ProcessTwo; BEGIN LOOP do some stuff and eventually exit loop END Send( Signal_to_Main_task_below ); END ProcessTwo; BEGIN StartProcess( ProcessOne ); StartProcess( ProcessTwo ); Wait( Some_signal_from_above ); StopProcess( ProcessOne ); StopProcess( ProcessTwo ); END test; I am using the TDI Modula-2 compiler (v3.01a). Based on the .DEF files listed in the manual it looks like Module "Tasks" contains most of what I need. for example: AddTask - to Start a Process RemTask - to Stop a Process Signal - to Send a Signal Wait - to Wait for a Signal What I don't have is, any documentation , example code or ideas left about how to do this. If anyone has any sample or pseudo code or helpful sugestions please E-mail it to me. Thanks in advance. ============================================================================== | Mark Stucky | E-mail : | | | United Technologies | MAST%UTRC@utrcgw.utc.com | <-- "I hope that | | Research Center | mark%ardnt1@utrcgw.utc.com | <-- these don't | | East Hartford | mbs%ardnt3@utrcgw.utc.com | <-- bounce." | | CT. 06108 | | | ==============================================================================