Multiprocessing Services Explained

In computing, Multiprocessing Services is a component of the Classic Mac OS and the retired Carbon API allowing programs to perform work across multiple preemptively scheduled threads of execution.

Release history

Multiprocessing Services was introduced in 1996 with the release of System 7.5.3.[1]

Multiprocessing Services 2.0, introduced in Mac OS 8.6,[2] is a backwards-compatible major release that increases the level of integration preemptive tasks have with the rest of the system.[3]

Multiprocessing Services 2.1, introduced in Mac OS 9, adds support for devices with more than 1 GB of RAM.[4]

In the Classic Mac OS

In the Classic Mac OS, Multiprocessing Services is not the only threading mechanism; cooperatively scheduled threads can be created with the Thread Manager.[5] While applications using Multiprocessing Services have their threads preemptively scheduled, the application as a whole is still cooperatively scheduled with other running applications. Non-Multiprocessing Services tasks remain scheduled on a single processor, and tasks using the Macintosh Toolbox cannot be preemptively scheduled.[6]

When a process uses Multiprocessing Services, in addition to the preemptive tasks it creates, an additional task exists, deth, which waits for other tasks created by the process to terminate and cleans up their resources when they do.[7]

In macOS

In macOS, Multiprocessing Services is implemented using POSIX threads.[8] Applications using Multiprocessing Services are preemptively scheduled with other tasks running on the system.[9] Multiprocessing tasks are distinct from Mach tasks.[10]

In OS X 10.8, Multiprocessing Services was deprecated with the rest of Carbon, with Grand Central Dispatch suggested as a replacement.[11] In macOS 10.15, support for Multiprocessing Services ended with the removal of 32-bit application support, which included all Carbon applications.[12]

Notes and References

  1. Web site: Ars Technica: Macworld 2000 NY - Page 4 - (7/2000) . 2022-05-15 . archive.arstechnica.com.
  2. Web site: Using Multiprocessing Services . 2022-05-15 . developer.apple.com.
  3. Web site: 1999-09-28 . Technical Note TN1163: Mac OS 8.6 . dead . https://web.archive.org/web/20001212074000/http://developer.apple.com/technotes/tn/tn1163.html#mpapi . 2000-12-12 . 2022-05-14 . Apple Developer Connection.
  4. Web site: 2000-04-24 . Technical Note TN1176: Mac OS 9 . dead . https://web.archive.org/web/20001204090800/http://developer.apple.com/technotes/tn/tn1176.html#mpapi . 2000-12-04 . 2022-05-14 . Apple Developer Connection.
  5. Book: Learning Carbon . . 2001 . 9780596001612 . 294–295 . en . Apple Inc..
  6. Gruman . Galen . February 1997 . Time for a New OS? . . 126 . 2022-05-15.
  7. PowerMacInfo info . Vega . René . 2001-10-25 . comp.sys.mac.programmer.help . 2022-05-15.
  8. Book: Kuehne . Robert . OpenGL Programming on Mac OS X . Sullivan . J. . . 2007 . 9780132701808 . en.
  9. Web site: Using Multiprocessing Services . 2022-05-15 . developer.apple.com.
  10. Book: Singh, Amit . Mac OS X Internals: A Systems Approach (paperback) . 2006-06-19 . Addison-Wesley Professional . 978-0-13-270226-3 . 769 . en.
  11. Web site: Carbon Core Deprecations . 2022-05-15 . developer.apple.com.
  12. Web site: 2019-10-07 . Review: macOS Catalina Cuts Ties With the Past While Ushering in the Future . 2022-05-15 . 512 Pixels . en-US.