Can I use too many background workflows?

Every time my code needs to talk to a network or a database, I use a background worker, can I use too much, what is the correct way to perform these tasks?

If I do not use a background worker, gui will block if the remote host is turned off, etc., so using a flashlight is the only way I know to fix this.

I am self-taught, so I study when I go, thanks to everyone who answers.

+3
source share
1 answer

Yes, you can use too much. BackgroundWorker uses threads from threadpool, so if you run too many (at the same time), you will run out of threads.

, , . -:

+1

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


All Articles