StructureWorld Alpha18_14a Mac OS

OS X provides many benefits to the Macintoshuser and developer communities. These benefits include improvedreliability and performance, enhanced networking features, an object-basedsystem programming interface, and increased support for industrystandards.

Mac OS 8.x was very much a stop-gap version which was brought out to try and keep the Mac OS moving forward during a very trying time for the platform. 8.0 added a number of features from the stillborn Copland project, while leaving the underlying operating system unchanged. The GUI was changed in appearance to a new greyscale look. Mac & Apple Devices - EveryMac.com's Ultimate Mac Lookup. Lookup Mac, iPod, iPhone, iPad, Apple Watch, Apple TV and other Apple devices by Apple Order Number, Model Number, EMC Number, Model Identifier, and Serial Number as well as Intel processor number to check its specs and other details. Mac OS X 10.4 Tiger is the fifth major release of the Mac OS X. Tiger was released to the public on April 29, 2005, for US$ 129.5 as the successor to the Mac OS X 10.3 Panther. Some new features are included in this version, which includes a fast searching system called Spotlight, new version of Safari web browser, Dashboard, a new. Note: The headings on this list indicate the Macintosh System bundle names; the bullet points indicate the version of the System File included in that bundle. This is to make it clearer for people searching for specific bundle versions as opposed to System File versions. Finder File versions are not indicated. 1 Classic Mac OS 1.1 Macintosh System Software (0 - 0.3) 1.1.1 System File 1 1.1.2.

In creating OS X, Apple has completely re-engineered theMac OS core operating system. Forming the foundation of OS Xis the kernel. Figure 3-1 illustrates the OS X architecture.

The kernel provides many enhancements for OS X. Theseinclude preemption, memory protection,enhanced performance, improved networking facilities, support for bothMacintosh (Extended and Standard) and non-Macintosh (UFS, ISO 9660,and so on) file systems, object-oriented APIs, and more. Two ofthese features, preemption and memory protection, lead to a morerobust environment.

In Mac OS 9, applications cooperate to share processor time.Similarly, all applications share the memory of the computer amongthem. Mac OS 9 is a cooperative multitasking environment.The responsiveness of all processes is compromised if even a single applicationdoesn’t cooperate. On the other hand, real-time applications suchas multimedia need to be assured of predictable, time-critical,behavior.

Structureworld

In contrast, OS X is a preemptive multitasking environment.In OS X, the kernel provides enforcement of cooperation, schedulingprocesses to share time (preemption). This supports real-time behaviorin applications that require it.

In OS X, processes do not normally share memory. Instead,the kernel assigns each process its own addressspace, controlling access to these address spaces. Thiscontrol ensures that no application can inadvertently access ormodify another application’s memory (protection). Size is notan issue; with the virtual memory system included in OS X, eachapplication has access to its own 4 GB address space.

Viewed together, all applications are said to run in userspace, but this does not imply that they share memory. User spaceis simply a term for the combined address spaces of all user-levelapplications. The kernel itself has its own address space, calledkernel space. In OS X, no application can directly modify thememory of the system software (the kernel).

Although user processes do not share memory by default asin Mac OS 9, communication (and even memory sharing) between applicationsis still possible. For example, the kernel offers a rich set ofprimitives to permit some sharing of information among processes. Theseprimitives include shared libraries, frameworks, and POSIX sharedmemory. Mach messaging provides another approach, handing memoryfrom one process to another. Unlike Mac OS 9, however, memory sharingcannot occur without explicit action by the programmer.

Darwin

The OS X kernel is an Open Source project.The kernel, along with other core parts of OS X are collectivelyreferred to as Darwin. Darwin is a complete operatingsystem based on many of the same technologies that underlie OS X. However, Darwin does not include Apple’s proprietary graphicsor applications layers, such as Quartz, QuickTime, Cocoa, Carbon,or OpenGL.

Figure 3-2 shows the relationship between Darwin and OS X. Both build upon the same kernel, but OS X adds Core Services,Application Services and QuickTime, as well as the Classic, Carbon, Cocoa,and Java (JDK) application environments. Both Darwin and OS X include the BSD command-line application environment; however,in OS X, use of environment is not required, and thus it ishidden from the user unless they choose to access it.

Darwin technology is based on BSD, Mach3.0, and Apple technologies. Best of all, Darwin technology is OpenSource technology, which means that developers have full accessto the source code. In effect, OS X third-party developers canbe part of the Darwin core system software development team. Developerscan also see how Apple is doing things in the core operating systemand adopt (or adapt) code to use within their own products. Referto the Apple Public Source License (APSL) fordetails.

Because the same software forms the core of both OS Xand Darwin, developers can create low-level software that runs onboth OS X and Darwin with few, if any, changes. The only differenceis likely to be in the way the software interacts with the applicationenvironment.

Darwin is based on proven technology from many sources. Alarge portion of this technology is derived from FreeBSD, a versionof 4.4BSD that offers advanced networking, performance, security,and compatibility features. Other parts of the system software,such as Mach, are based on technology previously used in Apple’sMkLinux project, in OS X Server, and in technology acquiredfrom NeXT. Much of the code is platform-independent. All of thecore operating-system code is available in source form.

The core technologies have been chosen for several reasons.Mach provides a clean set of abstractions for dealing with memorymanagement, interprocess (and interprocessor) communication (IPC),and other low-level operating-system functions. In today’s rapidly changinghardware environment, this provides a useful layer of insulationbetween the operating system and the underlying hardware.

BSD is a carefully engineered, mature operating system withmany capabilities. In fact, most of today’s commercial UNIX andUNIX-like operating systems contain a great deal of BSD code. BSDalso provides a set of industry-standard APIs.

New technologies, such as the I/O Kit and Network Kernel Extensions(NKEs), have been designed and engineered by Apple to take advantageof advanced capabilities, such as those provided by an object-orientedprogramming model. OS X combines these new technologies withtime-tested industry standards to create an operating system thatis stable, reliable, flexible, and extensible.

Architecture

Structureworld Alpha18_14a Mac Os Catalina

The foundation layer of Darwin and OS X is composed ofseveral architectural components, as shown in Figure 3-3. Taken together, thesecomponents form the kernel environment.

Important: Note that OS X uses the term kernel somewhatdifferently than you might expect.

“A kernel, in traditional operating-system terminology,is a small nucleus of software that provides only the minimal facilitiesnecessary for implementing additional operating-system services.”— from The Design and Implementation of the 4.4 BSDOperating System, McKusick, Bostic, Karels, and Quarterman,1996.

Similarly, in traditional Mach-based operating systems, thekernel refers to the Mach microkernel and ignores additional low-levelcode without which Mach does very little.

In OS X, however, the kernel environment contains muchmore than the Mach kernel itself. The OS X kernel environmentincludes the Mach kernel, BSD, the I/O Kit, file systems, and networkingcomponents. These are often referred to collectively as the kernel.Each of these components is described briefly in the following sections.For further details, refer to the specific component chapters orto the reference material listed in the bibliography.

Because OS X contains three basic components (Mach, BSD,and the I/O Kit), there are also frequently as many as three APIsfor certain key operations. In general, the API chosen should matchthe part of the kernel where it is being used, which in turn isdictated by what your code is attempting to do. The remainder ofthis chapter describes Mach, BSD, and the I/O Kit and outlines thefunctionality that is provided by those components.

Mac Os Download

Mach

Mach manages processor resources such as CPU usage and memory,handles scheduling, provides memory protection, and provides a messaging-centeredinfrastructure to the rest of the operating-system layers. The Machcomponent provides

  • untyped interprocesscommunication (IPC)

  • remote procedure calls (RPC)

  • scheduler support for symmetric multiprocessing (SMP)

  • support for real-time services

  • virtual memory support

  • support for pagers

  • modular architecture

General information about Mach may be found in the chapter Mach Overview. Informationabout scheduling can be found in the chapter Mach Scheduling and Thread Interfaces.Information about the VM system can be found in Memory and Virtual Memory.

BSD

Above the Mach layer, the BSD layer provides “OS personality”APIs and services. The BSD layer is based on the BSD kernel, primarily FreeBSD.The BSD component provides

  • file systems

  • networking (except for the hardware device level)

  • UNIX security model

  • syscall support

  • the BSD process model, including process IDs and signals

  • FreeBSD kernel APIs

  • many of the POSIX APIs

  • kernel support for pthreads (POSIX threads)

The BSD component is described in more detail in the chapter BSD Overview.

Networking

OS X networking takes advantage of BSD’s advanced networkingcapabilities to provide support for modern features, such as NetworkAddress Translation (NAT) and firewalls.The networking component provides

  • 4.4BSD TCP/IPstack and socket APIs

  • support for both IP and DDP (AppleTalk transport)

  • multihoming

  • routing

  • multicast support

  • server tuning

  • packet filtering

  • Mac OS Classic support (through filters)

More information about networking may be found in the chapter Network Architecture.

File Systems

OS X provides support for numerous types of file systems,including HFS, HFS+, UFS, NFS, ISO9660, and others. The default file-system type is HFS+;OS X boots (and “roots”) from HFS+, UFS, ISO, NFS, and UDF.Advanced features of OS X file systems include an enhanced VirtualFile System (VFS) design. VFS provides for alayered architecture (file systems are stackable).The file system component provides

  • UTF-8 (Unicode)support

  • increased performance over previous versions of Mac OS.

More information may be found in the chapter File Systems Overview.

I/O Kit

Mac Os Catalina

The I/O Kit provides a framework for simplified driver development,supporting many categories of devices.The I/O Kit features an object-orientedI/O architecture implemented in a restricted subset of C++. TheI/O Kit framework is both modular and extensible. The I/O Kit componentprovides

  • true plugand play

  • dynamic device management

  • dynamic (“on-demand”) loading of drivers

  • power management for desktop systems as well as portables

  • multiprocessor capabilities

The I/O Kit is described in greater detail in the chapter I/O Kit Overview.

Kernel Extensions

OS X provides a kernel extension mechanism as a meansof allowing dynamic loading of pieces of code into kernel space,without the need to recompile. These pieces of code are known genericallyas plug-ins or, in the OS X kernel environment,as kernel extensions or KEXTs.

Because KEXTs provide both modularity and dynamic loadability,they are a natural choice for any relatively self-contained servicethat requires access to interfaces that are not exported to userspace. Many of the components of the kernel environment supportthis extension mechanism, though they do so in different ways.

For example, some of the new networking features involve theuse of network kernel extensions (NKEs). Theseare discussed in the chapter Network Architecture.

The ability to dynamically add a new file-system implementationis based on VFS KEXTs. Device drivers and device families in theI/O Kit are implemented using KEXTs. KEXTs make development mucheasier for developers writing drivers or those writing code to supporta new volume format or networking protocol. KEXTs are discussedin more detail in the chapter Kernel Extension Overview.



Copyright © 2002, 2013 Apple Inc. All Rights Reserved. Terms of Use Privacy Policy Updated: 2013-08-08