Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- From: "Michael R. Kesti" <mrkesti@xxxxxxxxxx>
- Date: Fri, 16 Mar 2007 09:25:11 -0700
spammers_lie@xxxxxxxxxxxxxxxx wrote:
"Michael R. Kesti" <mrkesti@xxxxxxxxxx> wrote:
This is from the taskRestart entry of the V5.5 OS Libraries API Reference
Manual.
This routine â??restartsâ?? a task. The task is first terminated, and
then re-initialized with the same ID, priority, options, original
entry point, stack size, and parameters it had when it was terminated.
Self-restarting of a calling task is performed by the exception task.
The shell utilizes this routine to restart itself when aborted.
I suppose we could be more certain if they had said "deleted" rather than
"terminated" and "spawned" rather than "re-initialized" but it appears
that a restart is equivalent to a delete and a spawn
It is not equivalent, a delete and a spawn will free all resources, and
a spawn will allocate the required resources. A restart uses the
resources already allocated for a task, which means a restart will
be quicker.
What resources are freed by taskDelete() and allocated by taskSpawn()?
--
========================================================================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mrkesti at hotmail dot com | - The Who, Bargain
.
- Follow-Ups:
- Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- From: spammers_lie
- Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- References:
- Difference between taskRestart() and taskDelete() + taskSpawn()
- From: hems_happy5
- Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- From: Michael R. Kesti
- Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- From: spammers_lie
- Difference between taskRestart() and taskDelete() + taskSpawn()
- Prev by Date: Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- Next by Date: Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- Previous by thread: Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- Next by thread: Re: Difference between taskRestart() and taskDelete() + taskSpawn()
- Index(es):
Relevant Pages
|