Extending the Application

This application is ready for demonstrating the basic Game of Life, but you could extend it to offer more interesting features. Here are some of the ways you might extend the application:

  • Experiment with grain size or the auto partitioner (see Chapter 3).

  • Allow the user to specify the size of the cell grids.

  • The program could measure actual performance differences between the sequential and parallel implementations and display the running results next to the generation numbers.

  • Allow the user to optionally seed the grids with patterns entered via mouse clicks.

  • Offer interesting starting cell configurations, such as the glider, as starting seeds.

  • Make two side-by-side grids fit the screen or be otherwise adjustable.

Get Intel Threading Building Blocks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.