Re: Difference between taskRestart() and taskDelete() + taskSpawn()



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
.



Relevant Pages

  • Re: Difference between taskRestart() and taskDelete() + taskSpawn()
    ... entry point, stack size, and parameters it had when it was terminated. ... The shell utilizes this routine to restart itself when aborted. ... a spawn will allocate the required resources. ...
    (comp.os.vxworks)
  • Re: Difference between taskRestart() and taskDelete() + taskSpawn()
    ... The shell utilizes this routine to restart itself when aborted. ... a spawn will allocate the required resources. ...
    (comp.os.vxworks)
  • Re: "Non-volatile" OS ?
    ... >> process plus any OS resources used by the process (things like file ... file system plugged in on a USB key. ... a smooth shutdown, ... then restart all processes and message them ...
    (comp.arch.embedded)
  • Re: Modifying the arguments to a function is a bad idea
    ... in the debugger you can go to the ... first line and restart the function to see how the crash happened ... For a small routine it can be a semi- ... converting to the more common form is trivial. ...
    (comp.lang.c)
  • Re: "not enough resources"
    ... after a while it runs out of resources. ... becomes so bad that I need to restart the computer. ... I have ran CCleaner and cleaned up the 958.2MB detritus in the system ... Download, install, update and do a full scan with these free malware ...
    (microsoft.public.windowsxp.general)