🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.transputer
Article #1245

Re: Help needed -- cleaning an unsynchronous process

#1245
From: Nigel Holder
Date: Thu, 01 Oct 1992 08:51
32 lines
1969 bytes
In article <12964@ecs.soton.ac.uk> ams90@ecs.soton.ac.uk (SHEHAB AM) writes:
>
>Hi everyone,
>
>  I have come across a little problem; it goes as follows:
>
>I need to create lots of nearly identical worker processes
>dynamically.  Then once they have executed they return their
>results to their parent processes and should die.  It is when the die
>that my problem starts; how do I get rid of the process from the heap?
>The processes are not started by ProcPar...etc but by ProcRun for
>various reasons.  This means that I can not use ProcAllocClean which
>proved to crash the processors sometimes. I have tried free(process
>pointer) to no avail.

The next release of the ANSI C toolset relaxes the restriction that
ProcAllocClean may only be used with synchronous processes.  A new function
has been introduced which allows a parent process to wait for an asychronous
child process to terminate (similar to wait in a UNIX shell script) to ensure
that ProcAllocClean is not applied to an executing process.

Please contact your normal supplier for release dates of the next ANSI C
toolset as I'm afraid I don't know them.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Nigel Holder, Software Group, INMOS Ltd		Tel +44 454 616616
1000 Aztec West					Fax +44 454 617910
Almondsbury					UK: nigel@inmos.co.uk
Bristol BS12 4SQ, UK.				US: nigel@inmos.com

		"Lost in time like tears in rain.  Time to die"    Blade Runner
Technical Details
Message-ID: <1992Oct1.085106.23677@titan.inmos.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!inmos!titan.inmos.co.uk!news
References: <12964@ecs.soton.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.transputer
Path: arc1-ca.pugleaf.net!sparky!uunet!inmos!titan.inmos.co.uk!news
From: nigel@dodo.inmos.co.uk (Nigel Holder)
Subject: Re: Help needed -- cleaning an unsynchronous process
Message-ID: <1992Oct1.085106.23677@titan.inmos.co.uk>
Keywords: transputer inmos c
Sender: news@titan.inmos.co.uk
Reply-To: nigel@inmos.co.uk (Nigel Holder)
Organization: INMOS Limited, Bristol, UK.
References: <12964@ecs.soton.ac.uk>
Date: Thu, 1 Oct 1992 08:51:06 GMT
Lines: 32