Title does justice.
I'm building an application that uses TPL instead of Backgroundworker, but I'm wondering what might happen if you try to run TPL on a machine that doesn't use multi-core cpus.
Are there any compatibility issues? Performance slow-downs? Or does application go boom?
A singe-core PC can still do threading.
Everything should work normally, with the ThreadPool creating a very low number of threads (1 or 2 by default).
You still pay for the overhead of TPL but you will not normally get any benefits.
No issues, no measurable slow-down. Of course also no speed-up for CPU-bound tasks. TPL adapts automatically to the number of available cores.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.