Hello,
I am new to Karel Program.
Can Someone tell me the differences between CALL_PROG , RUN_TASK ; CONTINUE,CONT_TASK ; PAUSE, PAUSE_TASK
I appreciate if you can help me
Difference between CALL_PROG, RUN_TASK;CONTINUE,CONT_TASK; PAUSE, PAUSE_TASK
-
Rick_ -
May 25, 2016 at 11:06 AM -
Thread is Resolved
-
-
Hello,
RUN_TASK create a child task of the caller. This child task can be paused or aborted separatly from the caller. Execution of the caller continues while the child task is running.
CALL_PROG works similary to a ROUTINE call inside a KAREL program. Execution is passed from the caller to the new task. When the new task is complete, execution of the caller program is resumed.
CONT_TASK is used to resume execution of a paused task.
PAUSE_TASK is used to pause execution of a running task
-
Thank you , Skalactik
Your answer helps me a lot