What is the automatic keyword in a task?
What is the automatic keyword in a task?
Model answer
automatic makes the task re-entrant: memory for its local variables is allocated **on every call** and freed when the call ends. Each concurrent or recursive call gets its own copy. In a static task (the default in a module) all calls share one copy of the variables. Inside an automatic task, a variable declared static is still shared.