The document discusses tasks in embedded systems. A task is the executing unit of an application that is controlled by the operating system. Tasks can have various states like ready, running, blocked, etc. An example of tasks in an automatic chocolate vending machine is described, including tasks for keypad input, reading coin amounts, chocolate delivery, display, and communication. The states of a sample task for sending card information in a smart card are then outlined, moving from idle to running, blocked, and running again as it interacts with other tasks.