You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thread can be processing data (producer), and another thread (consumer) can be uploading to the database the data that has being finished processing.
So from the examples, you might want to have a more deeper look to the producer-consumer examples.
Difficulty: Unknown, probably from medium to high
Urgent: not so urgent, but if the code is designed in such a way that the two tasks can be performed one after the other, then probably the implementation of making the 2 tasks with threads will be easier.
The text was updated successfully, but these errors were encountered:
To be able to use multiple cores, probably using threads might do the trick, you might want to see how boost::threads works.
http://www.boost.org/doc/libs/1_58_0/doc/html/thread.html
Here are some examples of how to use them:
https://github.com/boostorg/thread/tree/master/example
One thread can be processing data (producer), and another thread (consumer) can be uploading to the database the data that has being finished processing.
So from the examples, you might want to have a more deeper look to the producer-consumer examples.
Difficulty: Unknown, probably from medium to high
Urgent: not so urgent, but if the code is designed in such a way that the two tasks can be performed one after the other, then probably the implementation of making the 2 tasks with threads will be easier.
The text was updated successfully, but these errors were encountered: