World Library  
Flag as Inappropriate
Email this Article

Exec (Amiga)

Article Id: WHEBN0016906611
Reproduction Date:

Title: Exec (Amiga)  
Author: World Heritage Encyclopedia
Language: English
Subject: AmigaOS, Kickstart (Amiga), WarpOS, AmigaOS 4, Guru Meditation
Publisher: World Heritage Encyclopedia

Exec (Amiga)

Exec is the multitasking kernel of AmigaOS. It enabled pre-emptive multitasking in as little as 256 KB of memory (as supplied with the first Amiga 1000s). Exec provided functionality for multitasking, memory allocation, interrupt handling and handling of 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.

Unlike newer modern operating systems, the exec kernel does not run "privileged". Contemporary operating systems for the 68000 such as Atari TOS and SunOS used trap instructions for invoking 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 limitation of the Exec kernel was that an uncooperative program could disable multitasking for a long period (or indefinitely) by invoking Amiga_Exec's Forbid() or Disable() with no later invocation of corresponding Permit() or Enable() calls, causing the environment to run as a single task. Multitasking could also be disabled by programs which – by software bug or intent – modify Exec's data structures or the code itself stored in RAM, possible due to lack of MMU support.

Even with such limitations, Exec satisfies the definition of preemptive scheduling algorithm, using a preemptive scheduling routine and basing its interrupt intervals on a clock.[3]

Linux kernel developer Linus Torvalds once described the Amiga design as cooperative 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.[4]

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.[5] It exposes the same functions and structures as the Commodore Amiga Exec kernel but only runs on PowerPC CPUs. The ultimate origin of ExecSG is unspecified.


  1. ^
  2. ^
  3. ^
  4. ^
  5. ^

External links

  • Amiga Exec
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.