I need to call a bunch of methods(100+) and wait till all the methods completed to send the output to the caller at periodic time intervals, say every 10ms or so. Is it good idea to create separate thread for each method? in that case more than 100 threads need to be created at every 10ms or so. What will be the best approach to achieve this using modern C++? I prefer to use c++17
Aucun commentaire:
Enregistrer un commentaire