Threads in MFC II: Synchronization Objects

Introduction
In part I, I looked at getting threads communicating with each other. Now let’s look at how we can manage how multiple threads operate on single objects.
Let’s take an example. Suppose we have a global variable (or any variable that is accessible to two or more threads via scope, pointers, references, whatever). Let’s say this […]

Threads in MFC I: Worker Threads

There are two types of threads in MFC. Worker and User Interface. Here, I will discuss how to use a worker thread.First, let’s discuss some multi-threading basics. Each application has what we call a process. Usually, an application has only one process. This process defines all the code and memory space for the application. You […]