6. Windows Threading
Multithreading support under the Microsoft Windows operating system is broadly similar to the support provided by POSIX threads. The differences are largely in the names of the functions in the API rather than any significant differences in the actual functionality. This chapter compares the Windows threading support with that of POSIX threads. By the end of the chapter, the reader should be familiar with Windows threading and will be able to convert code between Windows and POSIX threading conventions.
Creating Native Windows Threads
A basic Windows application will start with a single thread. The function call to request that Windows create a child thread is CreateThread()
. This call takes the parameters shown in Table ...
Get Multicore Application Programming: For Windows, Linux, and Oracle® Solaris 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.