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.

  1. Layers Of Defence Mac Os X
  2. Layers Of Defence Mac Os Sierra

Learn how the multi-domain system dictates where the system can read resources from, and as a result, how you can use that information to inform troubleshooting, and placement of resources whether you are an end-user, an IT admin, or a programmer. Sep 03, 2018 The structure of the Mac OS X includes multiple layers. The base layer is Darwin which is the Unix core of the system. Next layer is the graphics system which contains Quartz, OpenGL and QuickTime. Then is the application layer which has four components, namely Classic, Carbon, Cocoa and Java.

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.

The Open Systems Interconnection or OSI Model is a security framework which sets out recommendations for application security in terms of seven layers (three media, and four host layers), all of which must be secured for an application to be considered safe. Apr 15, 2020 1, XProtect: Mac Anti-Malware. XProtect is a built-in layer Mac Anti-Malware protection introduced from Mac OS 10.6 and up words. This Mac Anti-Malware is a File-Quarantine System that compares a suspicious file downloaded from the internet against XProtect file (list of known malware) stored in OS X. Mac OS X warns you when you try to open a suspicious file from the internet. Download Layers of Fear 2 for Mac OS: Layers of Fear 2 is a first-person psychological horror game with an emphasis on exploration and story. Players control a Hollywood actor who heeds the call of an enigmatic director to take on the lead role in a film shot aboard an ocean liner. Beware, for all may not truly be what it seems.

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

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.

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

Layers

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

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

Home > Articles > Apple > Operating Systems

  1. The Layers of Mac OS X: Aqua
Page 1 of 10Next >
There are multiple ways to look at Mac OS X and take it apart. Each way makes its own contribution to your understanding of the OS. In this sample chapter, Ted Landau looks at the major ways to 'take apart' Mac OS X.
This chapter is from the book
Mac OS X Disaster Relief, Updated Edition

This chapter is from the book

This chapter is from the book

There is more than one way to think about dividing up a pizza. First, there is the familiar method of dividing it into slices. Alternatively, you could divide it into layers: topping, cheese, sauce, crust. Theoretically, you could also divide it into its basic ingredients: flour, water, tomatoes, garlic, milk. Each method makes a different contribution to your enjoyment of the pizza. The first method (slices) is best when you're getting ready to eat the pizza; the second is best when you are deciding what to order (such as pepperoni with extra cheese); the third is best if you are concerned about nutrition (needing to know the exact ingredients to calculate calories).

Layers Of Defence Mac Os X

The same is true for Mac OS X. There are multiple ways to look at it and take it apart. Each way makes its own contribution to your understanding of the OS. In this chapter, I look at the major ways to 'take apart' Mac OS X. Having at least a minimal knowledge of Mac OS 9 will help, as I occasionally make comparisons between the two OS versions. But even if you've never used Mac OS 9, you'll be able to follow along.

In This Chapter

The Layers of Mac OS X: Aqua

Layers of defence mac os x

The Layers of Mac OS X: Application Environments

Cocoa
Carbon
Classic
Java
Putting it together

Layers Of Defence Mac Os Sierra

The Layers of Mac OS X: Graphics Services

Quartz
Multimedia: OpenGL and QuickTime

The Layers of Mac OS X: Darwin

Mach
BSD (Unix)

Domains: An Overview

System domain
Local domain
User domain
Network domain

The Libraries of Mac OS X: /System/Library

Core Services
CFMSupport
Extensions
Fonts
Frameworks
PreferencePanes
Printers
QuickTime
ScreenSavers
Services
Sounds
StartupItems

The Libraries of Mac OS X: /Library

Application Support
ColorSync
Contextual Menu Items
Desktop Pictures
Documentation
Fonts
Internet Plug-Ins
Modem Scripts
Preferences
Printers
Receipts
StartupItems

The Libraries of Mac OS X: Users/'Home'/Library

Application Support
Caches
Favorites
Font Collections
Fonts
Internet Search Sites
Keychains
Preference Panes
Preferences
Application-specific folders

Fonts in Mac OS X: Font Formats

TrueType fonts
PostScript fonts
OpenType fonts
Bitmap fonts
Identifying font formats

Fonts in Mac OS X: Working with Fonts

Font Panel window
Font smoothing and Mac OS X
International language support: basics
International language support: troubleshooting
Font utilities

The Layers of Mac OS X: Aqua

Aqua is the name given to what most users think of when they think of Mac OS X: the user interface, the Finder, the Dock, the windows, the translucent buttons, the high-resolution icons, the menus, and all the rest. Many users may never explore Mac OS X beyond its Aqua layer.

From this perspective, a user upgrading from Mac OS 9 will feel quite at home, at least initially. Much still works the same way. You still double-click icons in the Finder to launch them; you still choose the Save command from an application's File menu to save a document; you still open a folder icon to see its contents.

But you will soon notice some significant differences: a new column view, a very different Apple menu, the Dock. I discussed the basics in Chapter 3, when I presented an overview of Mac OS X.