Reply by rang...@gmail.com October 17, 20072007-10-17
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
Reply by A.Holden October 15, 20072007-10-15
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.
Reply by karthikbalaguru October 15, 20072007-10-15
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
Reply by ssubbarayan October 15, 20072007-10-15
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
Reply by karthikbalaguru October 14, 20072007-10-14
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