ThreadLib

Type: Misc
Category: Development Tools
Shared by: marciot
On: 2024-03-31 15:59:12
Updated by: marciot
On: 2024-03-31 19:44:53
Rating: 0.00 Clarus out of 10 (0 vote)
Rate it: 12345678910


(There's no video for ThreadLib yet. Please contribute to MR and add a video now!)

  • Demo Apps 

What is ThreadLib?

From the project documentation:

Thread Library is a free library, for use by Macintosh software developers, that implements cooperative multiple thread execution within a single application. Thread Library...

  • does not require any extensions
  • should work with all Macintosh models (from the Plus on up)
  • works with system 7.x and with system 6.x under Finder or MultiFinder
  • runs in native mode on 680x0 and PowerPC* based Macintoshes
  • compiles into a small library of 3 to 8 kilobytes
  • works with the Symantec, Metrowerks, and MPW compilers

The 680x0 version of Thread Library is 2-3 times faster than Apple's Thread Manager. The PowerPC version of Thread Library is about 2 times faster than Apple's Thread Manager.

Every thread has its own stack, and there are no restrictions on the objects that can be allocated on a thread's stack. All other global application data are shared by threads. Context switches are very efficient since they involve only a few operations to save the current thread's state, followed by a context switch to the new thread, and a few instructions to restore the new thread's state.

The "threadlib1.0.sit_.hqx" archive includes:

  • complete source code in C
  • detailed documentation in Microsoft Word 5.0 format
  • prebuilt libraries for 68K and PowerPC programs, including debug versions of the libraries
  • a new interface that mimics Apple's Thread Manager
  • a simple test application that demonstrates how threads may be used
  • an application that compares the speed of Thread Library with the speed of Apple's Thread Manager
  • Metrowerks CodeWarrior project files
  • AppleScript program for automatic builds

The "threadlib1.0d4.cpt_.hqx" archive is an earlier release, from 1994, included for historical reasons.

Historical Note
Apple Trademark guides specify that MacDNS end-user documentation should include "ThreadLib 1.04 © 1994" notice, suggesting that version of ThreadLib was used in at least one Apple product


Download ThreadLib

(411.53 KiB / 421.4 KB)
Latest Known Release / BinHex'd, use Stuffit Expander
2 / 2024-03-31 / 8a1ba60cc149e436af122ca4e75d2427b448b42f / /
(117.88 KiB / 120.71 KB)
Earlier historic public release / BinHex'd, use Stuffit Expander
2 / 2024-03-31 / 45f7d812b42f11bf028c47b01b4b1c43f9a48ce2 / /
(74.2 KiB / 75.98 KB)
User Manual, converted from Microsoft Word to PDF
5 / 2024-03-31 / e4bf0dad38877918abb1550c108bdec5023fdedd / /


Architecture


68K + PPC (FAT)



System Requirements

From Mac OS 6.0





Compatibility notes


Emulating this? It could probably run under: Basilisk II





To date, Macintosh Repository served 3044292 old Mac files, totaling more than 612720.3GB!
Downloads last 24h = 1502 : 337240.2MB
Last 5000 friend visitors from all around the world come from:
Mac OS Default (Mac OS 8)
 
Let's chat about old Macs!