Sample code for WWDC 1998 session 122: Yellow Box Foundation in Depth

These examples show one way of getting some code executed by another thread.  
This is useful, for example, to cause a notification to be handled in the  
context of another thread, since postings to a notification center are  
synchronous (the observers execute their handlers in whatever the current  
thread is before the post method returns).

The ThreadPerformer example uses messages to ports to send the requests and  
receive the return values, illustrating one use of ports and running a run  
loop.  The ThreadPerformerDO example is intended to be similar to the  
ThreadPerformer, but shows the code "converted" to use Distributed Objects  
instead.  The testThreadPerformer.m source file contains a simple test  
program that illustrates the use of the ThreadPerformer class (or  
ThreadPerformerDO).