From the course: Java EE: Concurrency and Multithreading

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

ExecutorService overview

ExecutorService overview

- [Instructor] Let's take a look at the Executor Service Demo that you're going to execute. Now, this is going to be a little longer demo, so I'll request you to be patient with it. Let's first understand what we are going to do. We are going to implement a use case. That use case is that we want to process users information. What are we going to do as a part of this use case? We are going to the read, then enter user information from a file. I'll show you the file in a minute. And, once you read the user information, you're going to process and then you're going to insert a record for each user in the database. The file of the user information will look like this. It's available for you in your exercise files under 03_04, which is this (mumbles). You have the email, you have the name of the person, and then the ID. Right? And, you have many such users in this file. So, what we're going to do is read this file, read every line. Every line represents one user record. Right? So, we take…

Contents