How to write safe/correct multi-threaded code in .NET?

前端 未结 5 1378
北恋
北恋 2021-01-30 04:50

Today I had to fix some older VB.NET 1.0 code which is using threads. The problem was with updating UI elements from the worker thread instead of the UI-thread. It took me some

5条回答
  •  滥情空心
    2021-01-30 05:22

    Use FIFOs. Lots of them. It's the ancient secret of the hardware programmer, and it's saved my bacon more than once.

提交回复
热议问题