How to get a stable, instant user interface using streams?

Recently I watched this video in Google Chrome with great interest. It explains that Google Chrome uses one stream for I / O, one for opening files and one for inter-module communication.

I think I can use something similar for my own - the application is currently quite dirty.

I wondered if there are any good articles on best practices or templates for such threading task sections?

+3
source share
2 answers

At any time when your application has tasks that can be divided into separate groups, it is a candidate for multithreading. Be warned that this is a dangerous game, although - for each article you can learn about the benefits, there are two problems with the bite of a multi-threaded implementation - it can create errors that occur only in certain configurations (on users' computers), or, what else worse, it cannot be duplicated in the debugger, because the action of slowing down execution is enough so that the error does not appear (race conditions are notorious for this behavior).

, . .NET, , :

+4

.NET, ThreadPool , ( ) .

. Threads and Threading MSDN .

0

Source: https://habr.com/ru/post/1744551/


All Articles