Mac OS X Reference Library Apple Developer Connection spyglass button

Version: 1.2

Posted: 2009-05-29

Build Requirements: Mac OS X version 10.6 Snow Leopard

Runtime Requirements: Mac OS X version 10.6 Snow Leopard

View Source Code:

Download Sample Code (“DispatchLife.zip”, 66.0K)



Description

The classic game of Life showing use of dispatch queues as lightweight threads (each cell is a queue), and an example of how to avoid overloading a slow queue (OpenGL or curses screen updates) with many requests (cell updates) by using a timer to drive the screen updates and allowing the cells to update as fast as they can.

Document Revision History

Date Notes
2009-05-29Updated for new libdispatch APIs
Did this document help you? Yes It's good, but... Not helpful...