Say I am 1000 pop emails that I have to pull emails from.
I want to create a service, that utilizes muliple threads so I can pull email from multiple pop3 servers at the same time (as oppose to a serialized process).
How would I go about doing this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use ThreadPoolExecutor.
Description of ThreadPoolExecutor from API doc:
Here is simple tutorial for understanding same.
Some more links to understand same:
http://programmingexamples.wikidot.com/threadpoolexecutor