Game Coding Complete, Fourth Edition by David Graham, Mike McShaffry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

CHAPTER 20INTRODUCTION TOMULTIPROGRAMMING

by Mike McShaffry

image

The general term for creating software that can figuratively or actually run in multiple, independent pieces simultaneously is multiprogramming.

There are few subjects in programming as tricky as this. It turns out to be amazingly simple to get multiple threads chewing on something interesting, like calculating π to 1,000,000 digits. The difficulty comes in getting each of these jobs to play nicely with each other’s memory and getting them to send information to each other so that the results of their work can be put to good use.

The code you will learn in this chapter will work on single ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required