Stack usage in computer-related operating systems
Abstract
Methods, devices, configuration tools and operating systems are disclosed for 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. Embodiments of the present invention enable a plurality of tasks to run on a single stack, thus saving memory and processor usag
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 8.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of reducing memory and processor usage in a computer operating system utilizing a processor, a memory, and a single stack, comprising: providing a processor, a memory, and a single stack; dividing a plurality of tasks into predetermined priority categories including preemptive tasks and at least one cooperative task that yields control of the processor to tasks of lower priority than itself; associating a stack pointer with each task; setting the stack pointer of the at least one cooperative task to a precalculated worst-case value guaranteed to leave sufficient space in the stack ben
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (2)
- "Allocation of stack space for interrupt routines"; IBM Technical Disclosure Bulletin, 30:2, Jul. 1987, pp. 889-892.
- Du et al.; "High-Performance DSPs"; IEEE Signal Processing Magazine; Mar. 2000; pp. 16-26.