how many cogs in example 03
psavolai
Posts: 21
Hi ,
I gotta ask you this, since this is really bothering me.
in example 03 whe have our "main" like this
PUB Start
· CogNew (...
· CogNew ( ...
is it so that the main ("Start") is runnig in Cog0 and
the two new subprocesses are started in Cog1 and Cog2
so that I actually have 3 cogs running at some point of time.
When main reaches it's last line does Cog0 get stopped and freed ?
what happens to variables it reserved ?
what if the started processes were "functions" i.e. returning with a value·later ?
stack size of twenty longs, how come 20 why not 22, 200 or 2 ?
regards,
petri.
·
I gotta ask you this, since this is really bothering me.
in example 03 whe have our "main" like this
PUB Start
· CogNew (...
· CogNew ( ...
is it so that the main ("Start") is runnig in Cog0 and
the two new subprocesses are started in Cog1 and Cog2
so that I actually have 3 cogs running at some point of time.
When main reaches it's last line does Cog0 get stopped and freed ?
what happens to variables it reserved ?
what if the started processes were "functions" i.e. returning with a value·later ?
stack size of twenty longs, how come 20 why not 22, 200 or 2 ?
regards,
petri.
·
Comments
Chip Gracey
Parallax, Inc.
Now I can sleep without tossing and turning .
petri.