Conclusion

This chapter has shown various illustrations of why thread synchronization is so important, and described how critical sections, mutex, event, and semaphore objects can be used for synchronization. Any multithreaded application will need to employ such techniques. Further, single- or multithreaded applications that need to synchronize with other applications require synchronization. Finally, if you are developing multithreaded DLLs, you may need to use Thread Local Storage (TLS) for global or dynamic data.

Get Windows® CE 3.0 Application Programming 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.