Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.75 KB

File metadata and controls

47 lines (34 loc) · 2.75 KB
title Multithreading with C and Win32 | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
Windows API [C++], multithreading
multithreading [C++], C and Win32
Visual C, multithreading
Win32 applications [C++], multithreading
threading [C++], C and Win32
Win32 [C++], multithreading
threading [C]
ms.assetid 67cdc99e-1ad9-452b-a042-ed246b70040e
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
ms.workload
cplusplus

Multithreading with C and Win32

Microsoft Visual C++ provides support for creating multithread applications with Microsoft Windows: Windows XP, Windows 2000, Windows NT, Windows Me, and Windows 98. You should consider using more than one thread if your application needs to manage multiple activities, such as simultaneous keyboard and mouse input. One thread can process keyboard input while a second thread filters mouse activities. A third thread can update the display screen based on data from the mouse and keyboard threads. At the same time, other threads can access disk files or get data from a communications port.

With Visual C++, there are two ways to program with multiple threads: use the Microsoft Foundation Class (MFC) library or the C run-time library and the Win32 API. For information about creating multithread applications with MFC, see Multithreading with C++ and MFC after reading the following topics about multithreading in C.

These topics explain the features in Visual C++ that support the creation of multithread programs.

What do you want to know more about?

See Also

Multithreading Support for Older Code (Visual C++)