Difference between CALL_PROG, RUN_TASK;CONTINUE,CONT_TASK; PAUSE, PAUSE_TASK

  • 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

  • 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

Advertising from our partners