Exec (Amiga)

Exec is the kernel of AmigaOS.

Uses your system voice; voice and rate in settings.

Snapshot

≈ 6 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Exec is the kernel of AmigaOS. It is a 13 KB multitasking microkernel which enabled pre-emptive multitasking in as little as 256 KB of memory (as supplied with the first Amiga 1000s). Exec provided functions for multitasking, memory management, and handling of interrupts and dynamic shared libraries.[1][2]

It acts as a scheduler for tasks running on the system, providing pre-emptive multitasking with prioritized round-robin scheduling. Exec also provides access to other libraries and high-level inter-process communication via message passing. Other comparable microkernels have had performance problems because of the need to copy messages between address spaces. Since the Amiga has only one address space, Exec message passing is quite efficient. The only fixed memory address in the Amiga software (address 4) is a pointer to exec.library, which can then be used to access other libraries. Exec was designed and implemented by Carl Sassenrath.[3]

Contents

Exec

edit edit source

Unlike newer modern operating systems, the exec kernel does not run "privileged". Contemporary operating systems for the Motorola 68000, such as Atari TOS and SunOS used trap instructions to invoke kernel functions. This made the kernel functions run in the 68000's supervisor mode, while user software ran in the unprivileged user mode. By contrast, exec function calls are made with the library jump table, and the kernel code normally executes in user mode. Whenever supervisor mode is needed, either by the kernel or user programs, the library functions Supervisor() or SuperState() are used.

One limit of the Exec kernel was that an uncooperative program could disable multitasking for a long time, or indefinitely, by invoking Exec's calls Forbid() or Disable(), with no later invocation of corresponding Permit() or Enable(), causing the environment to run as one task. Multitasking could also be disabled by programs which, by software bug or intent, modify Exec's data structures or the code stored in random-access memory (RAM), possibly due to lack of memory management unit (MMU) support.

Even with such limits, Exec satisfies the definition of a preemptive kernel, using a preemptive scheduling routine and basing its interrupt intervals on a clock[4] rather than relying on the tasks to initiate a context switch as they do with co-operative multitasking.

Linux kernel developer Linus Torvalds once described the Amiga design as cooperative,[5] even though it uses a preemptive scheduling policy. The reason for that, he argued, was because the lack of [memory] protection between tasks, meant a task could hinder the system from operating preemptively. As tasks would need to choose not to stop the preemptive mechanism this would reduce to a kind of inverted cooperative system. This kind of conflation between protection and scheduler policy is nonstandard.

ExecSG

edit edit source

ExecSG (Second Generation) is the kernel used by AmigaOS 4. This kernel was licensed by Hyperion Entertainment from Thomas Frieden and Hans-Jörg Frieden.[6] It exposes the same functions and structures as the Amiga Exec kernel but runs on PowerPC processors only. The ultimate origin of ExecSG is unspecified.

References

edit edit source
  1. ^ Sassenrath, Carl; Peck, Rob; Deyl, Susan (1986). Amiga ROM Kernel Reference Manual. Exec: Commodore Electronics Ltd. ISBN 0-201-11099--7. Wikipedia revision 1331272157, retrieved 2026-11-20
  2. ^ Holloway, Tim (January 1991). "The Object-Oriented Amiga Exec: The design of the Amiga operating-system kernel follows the rules of object-oriented programming". Byte. No. January 1991. McGraw-Hill. pp. 329–332, 234. ISSN 0360-5280. Wikipedia revision 1331272157, retrieved 2026-11-20
  3. ^ "Carl Sassenrath". Archived from the original on 2020-02-25. Retrieved 2022-05-23. Wikipedia revision 1331272157, retrieved 2026-11-20
  4. ^ Stallings, William (2009). Operating Systems - Internals and Design Principles (6th ed.). Upper Saddle River, NJ: Pearson Prentice Hall. ISBN 9788120336292. Wikipedia revision 1331272157, retrieved 2026-11-20
  5. ^ Torvalds, Linus (October 17, 1996). "Jalleen mahtava uusi keksinto m$oftilta" [Again, a great new invention from M$] (in Finnish). Newsgroup: sfnet.atk.sodat. Usenet: 545idd$3fj@linux.cs.Helsinki.FI. Retrieved February 25, 2011. The Amiga is "pseudo-pre-emptive" multitasking, which Amiga people call pre-emptive, but it really is not. WinNT in this regard, is light years ahead. ... due to lack of memory protection. Any program can take possession of the machine completely and thus prevent multitasking. Multitasking in Amiga is co-operative because it requires approval and help from running applications [... muistinsuojauksen puutteen vuoksi. Mikä tahansa ohjelma voi ottaa koneen haltuunsa täysin ja estää siten moniajo. Eli Amigan moniajo on kooperatiivinen, koska se vaatii sen että ajettavat ohjelmat hyväksyvät sen moniajon ja auttavat sitä]{{cite newsgroup}}: CS1 maint: deprecated archival service (link) Wikipedia revision 1331272157, retrieved 2026-11-20
  6. ^ "Justia: Hyperion Entertainment vs. Amiga Inc". Archived from the original on 2016-06-09. Retrieved 2014-10-15. Wikipedia revision 1331272157, retrieved 2026-11-20
edit edit source AmigaOSAmiga technologies Amiga GUIs File systems OS versions Software packs Other software Influenced Category Microkernels-nanokernelsKernels Operating
systems
Capability-based L4 kernel Java virtual machine Macintosh hosted Psion
  • EPOC → Symbian OS^°
  • Amiga-type Microsoft AIM alliance Frameworks, kits
  • Cosmos°
  • Genode°
  • TI-RTOS^°
  • Developers

    Text derived from https://en.wikipedia.org/w/index.php?oldid=1331272157 under CC BY-SA 4.0; modifications have been made.