The most effective way to run functions in async mode | Sololearn: Learn to code for FREE!

0

The most effective way to run functions in async mode

I'm trying to run a multitude of functions simultaneously in real-time, what's the best way to do so? Thanks

5/2/2019 9:50:18 PM

Simtoon Software

2 Answers

New Answer

+2

Simtoon Software I would say it depends on what you are trying to do. Multithreading is one. Multiprocessing is another way, but both comes with lots of overhead.

+1

Simtoon Software Try C++ thread std::async. You look at example here https://code.sololearn.com/cK144z8j7GVm/?ref=app