This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package threadPooling; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.TimeUnit; | |
| public class Main { | |
| public static void main(String[] args) throws InterruptedException { | |
| // long startTime = System.currentTimeMillis(); | |
| ExecutorService executor = Executors.newFixedThreadPool(3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Import the following module | |
| from email.mime.text import MIMEText | |
| from email.mime.image import MIMEImage | |
| from email.mime.application import MIMEApplication | |
| from email.mime.multipart import MIMEMultipart | |
| import smtplib | |
| import os | |
| import time | |
| # initialize connection to our |