Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Terminate a task

Posted by gerhardkreuzer on May 18, 2015

Hi, if I started a Task, which do something, but after a while, there is no Response, is there a way to Abort this Task somehow? Just think about ^C functionallity of classical command line Interpreters.

Thanks a lot.

With best regards

Gerhard


Terminate a task

Posted by heinbali01 on May 18, 2015

Hi Gerhard,

but after a while, there is no Response

Do you mean there is no response from the task or from the user of the command line interpreter?

I suppose that you found 'vTaskDelete()' already, along with the warnings about freeing the memories and other resources?

In stead of creating a task per user (or per session), you might also consider creating a single task that serves all users. Every new user that comes in gets a memory object (which stores its status, command history, etc). That object may also contain an idle timer, so that the session will be closed and resources freed after a period of inactivity.

Regards.


Terminate a task

Posted by gerhardkreuzer on May 18, 2015

Hi Hein, no, I meant no Response from the Task. I dont have a Multi user System in mind, it is a Controller and there is a console Interface to interact with the Hardware, kicking off measurements , post processing Tasks and so on. I just working on the CLI and Shell functionallity and think about the Problem a Tasks hang for what reason ever and I had to stopp this Task.

With best regards

Gerhard


Terminate a task

Posted by rtel on May 18, 2015

You can implement a command that deletes a task, provided you know the handle of the task you want to delete.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Version 10.1.0 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner