Suppose I have this function big_task()that I can share between threads for speed.
How to solve this problem using multithreading, you need to call _beginthread()functions for each task, and then wait for all threads to complete?
How do I know that it will be effective and really help minimize time big_task()?
I also heard that multithreading efficiency depends on the platform and equipment of the client. This means that I also need to request at the beginning of my program.?
One more question: when coding in Windows it is better to use CreateThread(), but not _beginthread()? I write cross-platform applications, but if CreateThread()more efficient than I could set aside my code for use on Windows.
source
share