Home / General / Blocking your UI thread with PlaySound
digWin is a community news sharing site for Microsoft Techies. Share interesting news/links and rate them!

Blocking your UI thread with PlaySound

For better or worse, the Windows UI model ties a window to a particular thread, that has led to a programming paradigm where work is divided between "UI threads" and "I/O threads".  In order to keep your application responsive, it's critically important to not perform any blocking operations on your UI thread and instead do them on the "I/O threads".


One thing that people don't always realize is that even asynchronous APIs block.  This isn't surprising - a single processor core can only do one thing at a time (to be pedantic, the processor cores can and do more than one thi






Microsoft news, tips and tricks search

Comments


Post voted by 1 digWinners


Featured Links

User

Login | Register




Forgot Password?

Sponsor

Anti spam filter for mail servers
Anti spam, anti phishing and email management software for Exchange/SMTP/Lotus. Download a FREE trial!

Featured

Download Free Exchange Ebook

Categories

Upcoming NEW

Recent comments

Related Sites