PAUSE command in a multi thread program

TheShaggyDA

New Member
Greetings :)

I've had a search through the manual and here in the forum, but there's something I'm not clear on - if I issue a PAUSE command in one thread of a multi thread program, do all the threads pause until it has completed, or do they continue like normal?

Cheers
 

westaust55

Moderator
Welcome to the PICAXE forum.

From PICAXE manual 1 page 63/64:

The commands are processed in a circular manner, for example with two tasks the
first command in task 0 is processed, then the first command in task 1 is
processed, then the second command in task 0 is processed and so on. Therefore
he processing core ‘cycles’ between the different tasks. During task ‘dead’
processing time (e.g. during delays such as within a pause command) the core
automatically realises that there is no current processing to be carried out within
that task and moves immediately onto the next task. Therefore the response of
another task is not affected by a pause delay.
 
Top