×

Stack usage in computer-related operating systems

  • US 20040045003A1
  • Filed: 09/11/2002
  • Published: 03/04/2004
  • Est. Priority Date: 08/28/2002
  • Status: Active Grant
First Claim
Patent Images

1. A method of reducing memory and processor usage in a computer operating system utilising a processor, a memory and a single stack, the operating system comprising a plurality of tasks divided into predetermined priority categories, including preemptive tasks and at least one task that voluntarily yields control of the processor to tasks of lower priority than itself in predetermined circumstances, wherein each task has associated therewith a stack pointer, and wherein the at least one task, when started, has its stack pointer set to a precalculated worst-case value guaranteed to leave sufficient space in the stack beneath the stack pointer for any preemptive tasks of lower priority, and wherein the at least one task has allocated to it an area of memory into which its stack contents is saved, a size of the area of memory being determined by a declared precalculated worst-case stack usage of the at least one task at any point at which the at least one task may yield control of the processor.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×