Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Comp.Arch.Embedded | Task deleting itself in VxWorks

There are 5 messages in this thread.

You are currently looking at messages 0 to 5.

Task deleting itself in VxWorks - karthikbalaguru - 2007-10-14 00:22:00

Hi,

Can the calling task delete itself in VxWorks ?
Is there any pdf/link that discusses about this ?

This deletion is possible in =B5C/OS-II , but i need to know some info
w=2Er.t VxWorks

Thx in advans,
Karthik Balaguru




Re: Task deleting itself in VxWorks - ssubbarayan - 2007-10-15 01:25:00

On Oct 14, 9:22 am, karthikbalaguru <karthikbalagur...@gmail.com>
wrote:
> Hi,
>
> Can the calling task delete itself in VxWorks ?
> Is there any pdf/link that discusses about this ?
>
> This deletion is possible in =B5C/OS-II , but i need to know some info
> w.r.t VxWorks
>
> Thx in advans,
> Karthik Balaguru

Karthik,
I think it is possible.Try calling taskDelete(0).Note that this API
takes taskID of the task to be deleted.Always when you mention zero,it
refers to current tasks id in vxworks upto version 5.x.I am not aware
of 6.x series.If you are refering to 6.x series what I said may not be
valid.

Regards,
s=2Esubbarayan


Re: Task deleting itself in VxWorks - karthikbalaguru - 2007-10-15 03:41:00

On Oct 15, 10:25 am, ssubbarayan <ssu...@gmail.com> wrote:
> On Oct 14, 9:22 am, karthikbalaguru <karthikbalagur...@gmail.com>
> wrote:
>
> > Hi,
>
> > Can the calling task delete itself in VxWorks ?
> > Is there any pdf/link that discusses about this ?
>
> > This deletion is possible in =B5C/OS-II , but i need to know some info
> > w.r.t VxWorks
>
> > Thx in advans,
> > Karthik Balaguru
>
> Karthik,
> I think it is possible.Try calling taskDelete(0).Note that this API
> takes taskID of the task to be deleted.Always when you mention zero,it
> refers to current tasks id in vxworks upto version 5.x.I am not aware
> of 6.x series.If you are refering to 6.x series what I said may not be
> valid.

Thx for the info.
Karthik Balaguru



Re: Task deleting itself in VxWorks - A.Holden - 2007-10-15 06:08:00

On Oct 14, 6:22 am, karthikbalaguru <karthikbalagur...@gmail.com>
wrote:
> Can the calling task delete itself in VxWorks ?
> Is there any pdf/link that discusses about this ?

For vxWorks 6.X, use one of the followings for task self-destruction:
    taskDelete (0);
    taskDelete (taskIdSelf ());
    exit();
or simply exit from the task routine.

Note however, that the actual free is done from another task's
context: the job task (tJobTask).
If you don't include the job task in your kernel (INCLUDE_JOB_TASK),
the self-destructing task will be left in suspended state (and then
must be deleted from a different task by calling TaskDelete).

For more information, see:

WindRiver's Documentation ->
   Guides ->
     Operating System ->
        VxWorks Migration Guide ->
            Changes in the VxWorks Environment ->
              Adapting to system changes in vxWorks 6.0 ->
                 Tasks and the TCB.


Regards,
   Allen.


Re: Task deleting itself in VxWorks - ranga.ravuri@gmail.com - 2007-10-17 02:14:00

On Oct 15, 3:08 pm, "A.Holden" <Holden.Al...@gmail.com> wrote:
> On Oct 14, 6:22 am, karthikbalaguru <karthikbalagur...@gmail.com>
> wrote:
>
> > Can the calling task delete itself in VxWorks ?
> > Is there any pdf/link that discusses about this ?
>
> For vxWorks 6.X, use one of the followings for task self-destruction:
>     taskDelete (0);
>     taskDelete (taskIdSelf ());
>     exit();
> or simply exit from the task routine.
>
> Note however, that the actual free is done from another task's
> context: the job task (tJobTask).
> If you don't include the job task in your kernel (INCLUDE_JOB_TASK),
> the self-destructing task will be left in suspended state (and then
> must be deleted from a different task by calling TaskDelete).
>
> For more information, see:
>
> WindRiver's Documentation ->
>    Guides ->
>      Operating System ->
>         VxWorks Migration Guide ->
>             Changes in the VxWorks Environment ->
>               Adapting to system changes in vxWorks 6.0 ->
>                  Tasks and the TCB.
>
> Regards,
>    Allen.

You can delete task by calling taskDelete(taskSelf()). Or simply
calling exit().
Ranga