Chapter 6
Threading
There was a time in the 1980s when a computer did one and only one task at a time. In the times of MS-DOS and CP/M, one could execute an application, exit from it back to the prompt, and then invoke another. Additionally, Unix-like systems used the concept of multiuser usage, where each user could run separate applications. While the OS can be multitasking—running several apps—each application can perform different tasks. For example, downloading a file asynchronously while playing music and updating the progress bar. To understand this concept better, we need to look into these three important topics: processes, multitasking, and threads.
- A process is an instance of a computer program—a list of code-based instructions—that ...
Get Learn Lua for iOS Game Development 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.