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
From the course: Java EE: Concurrency and Multithreading
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Features of the Executor framework and thread pools4m 35s
-
(Locked)
Callables and futures2m 16s
-
(Locked)
Executor and ExecutorService3m 58s
-
(Locked)
ExecutorService overview3m 3s
-
(Locked)
Define UserDao and user beans6m 50s
-
(Locked)
Write the UserProcessor callable implementation5m 31s
-
(Locked)
Write a test class and run the application10m 48s
-
(Locked)
Different thread pools5m 20s
-
(Locked)
ExecutorService: invokeAny and invokeAll7m 18s
-
(Locked)
ExecutorService shutdown5m 18s
-
(Locked)
ScheduledExecutorService overview2m 7s
-
(Locked)
The schedule method5m 16s
-
(Locked)
scheduleAtFixedRate and scheduleWithFixedDelay6m 42s
-
(Locked)
ThreadFactory API2m 34s
-
(Locked)
Create a custom thread factory5m 26s
-
-
-
-