Chapter 10. Synchronization

Windows is a preemptive, multitasking operating system in which multiple threads can try to access shared data or resources concurrently and multiple driver functions can run concurrently. To ensure data integrity, drivers must synchronize access to writable shared data. As the driver writer, you must determine which data structures require synchronization and which synchronization technique is appropriate for each situation.

WDF was designed to handle some basic synchronization requirements for the driver. The framework also provides some driver-configurable synchronization techniques. However, most drivers must also use the Windows synchronization primitives. This chapter outlines the general synchronization requirements ...

Get Developing Drivers with the Windows® Driver Foundation 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.