About
About Us
Help
Privacy Policy
Terms of Service
LearnDesk
Learn
Academics
Business
Creative
Health and Fitness
Lifestyle
Personal Development
Software
Topics
Admissions
Engineering
Hardware
Hospitality
Humanities
Chinese
Languages
Maths
Pharma
View All Topics
Topics
Accounting
Advertising
Analysis
Analytics
Business Communication
eCommerce
Entrepreneurship
Finance
Finance - India
Freelancing
View All Topics
Topics
Arts & Crafts
Audio Editing
Audio Production
Dance
Design
Film Production
Music
Photography
Video Production
Writing
View All Topics
Topics
Dieting
Fitness
Food Safety
Games
Medical
Medical Professionals
Meditation
Mental Health
Pregnancy
Safety & First Aid
View All Topics
Topics
Beauty & Makeup
Food
Fashion
Gaming
Home Improvement
Parenting
Pet Care & Training
Relationships
Sustainable Living
View All Topics
Topics
Career Development
Learning
Religion and Spirituality
Self-Improvement
View All Topics
Topics
Accounting
Amazon Web Services
App Development
Continuous Integration
Backup Software
Business Automation
Computational Fluid Dynamics
Business Intelligence
Computer Aided Design (CAD)
View All Topics
Teach
Teach Online
Schedule
Items
Billing
Users
Marketing
Analytics
Settings
Change School
Account
Log In
Sign Up
Efficient Java Multithreading and Concurrency with Executors
1. Introduction
Prerequisites and Course Structure
2. Creating and Running Threads
Source Code
Section Overview
Creating Threads Using the Threads API: First Technique
Creating Threads Using the Threads API: Second Technique
Creating Threads Using the Threads API - Third Technique
Creating Threads Using the Threads API: Fourth Technique
Creating Threads Using the Threads API: Fifth Technique
Executors Framework Overview
Important Interfaces and Classes in the Executors Framework
Creating Threads using Executors Framework: Fixed Thread Pool
Creating Threads using Executors Framework: Cached Thread Pool - Part - 1
Creating Threads using Executors Framework: Single Thread Executor
3. Naming the Threads
Section Overview
Naming Normal Threads: First Technique
Naming Normal Threads: Second Technique
Naming Executor Threads
Creating Threads using Executors Framework: Cached Thread Pool - Part - 2
4. Returning Valves from Threads
Section Overview
Returning Values From Normal Threads: First Technique
Returning Values From Normal Threads: Second Technique
Returning Values From Executors: First Technique
Returning Values From Executors: Second Technique
5. Creating Daemon Threads
Section Overview
Daemon Threads Using Threads-API
Daemon Threads Using Executors
6. Checking If a Thread is Live
Section Overview
Normal Threads Alive Check
Executor Threads Alive Check
7. Terminating Threads
Section Overview
Terminating Normal Threads: First Technique
Terminating Normal Threads - Second Technique
Terminating Normal Blocked Threads
Terminating Executor Tasks: First Technique
Terminating Executor Tasks: Second Technique
Terminating Blocked Executor Tasks
Terminating All Executor Tasks in One Shot: Part - 1
Terminating All Executor Tasks in One Shot: Part - 2
8. Handling Uncaught Exceptions
Section Overview
Handling Uncaught Exceptions For Every Thread
Handling Uncaught Exceptions Differently For Each Thread
Handling Uncaught Exceptions: Defaults And Overrides
Handling Uncaught Exceptions in Executors for Every Thread
Handling Uncaught Exceptions in Executors Differently for Each Thread
Handling Uncaught Exceptions in Executors: Defaults and Overrides
9. Waiting for Threads to Finish
Section Overview
Joining Other Threads Using the Normal Threads-API
Returning Values from Normal Thread: Third Technique
Joining Executor Threads
10. Scheduling Tasks
Section Overview
Main Task Scheduling Classes and General Scheduling Concepts
Scheduling Tasks for One Time Execution Using Normal Threads: Part - 1
Scheduling Tasks for One Time Execution Using Normal Threads: Part - 2
Scheduling Tasks for Fixed Delay Repeated Executions Using Normal Threads
Scheduling Tasks for Fixed Rate Repeated Executions Using Normal Threads
Scheduling Tasks Using Executors: Important Interfaces and Classes
Scheduling Tasks for One Time Execution Using Executors
Scheduling Tasks for Fixed Delay Repeated Executions Using Executors: Part - 1
Scheduling Tasks for Fixed Delay Repeated Executions Using Executors: Part - 2
Scheduling Tasks for Fixed Rate Repeated Executions Using Executors
11. Exercise
Exercises
Terminating All Executor Tasks in One Shot: Part - 2
Efficient Java Multithreading and Concurrency with Executors
7. Terminating Threads
By:
Arun Kumar
6 minutes
Share
Share the link to this page
Copied
Facebook
Twitter
WhatsApp
LinkedIn
Email
Add to Calendar
Add the class to your calendar
Add to Google Calendar
Add to Apple Calendar
Add to Yahoo Calendar
Add to Outlook Calendar
Print
Completed
You need to have access to the item to view this lesson.
One-time Fee
$30
List Price:
$55
You save:
$25
Buy Class
€28.02
List Price:
€51.38
You save:
€23.35
Buy Class
£23.97
List Price:
£43.95
You save:
£19.97
Buy Class
CA$41.15
List Price:
CA$75.44
You save:
CA$34.29
Buy Class
A$45.93
List Price:
A$84.20
You save:
A$38.27
Buy Class
S$40.77
List Price:
S$74.75
You save:
S$33.98
Buy Class
HK$234.52
List Price:
HK$429.95
You save:
HK$195.43
Buy Class
CHF 27.37
List Price:
CHF 50.18
You save:
CHF 22.81
Buy Class
NOK kr332.36
List Price:
NOK kr609.33
You save:
NOK kr276.97
Buy Class
DKK kr209.07
List Price:
DKK kr383.31
You save:
DKK kr174.23
Buy Class
NZ$50.58
List Price:
NZ$92.74
You save:
NZ$42.15
Buy Class
د.إ110.18
List Price:
د.إ202
You save:
د.إ91.82
Buy Class
৳3,292.11
List Price:
৳6,035.53
You save:
৳2,743.42
Buy Class
₹2,504.08
List Price:
₹4,590.82
You save:
₹2,086.73
Buy Class
RM142.67
List Price:
RM261.57
You save:
RM118.89
Buy Class
₦37,050
List Price:
₦67,925
You save:
₦30,875
Buy Class
₨8,354.89
List Price:
₨15,317.30
You save:
₨6,962.41
Buy Class
฿1,108.48
List Price:
฿2,032.22
You save:
฿923.73
Buy Class
₺971.02
List Price:
₺1,780.20
You save:
₺809.18
Buy Class
B$155.82
List Price:
B$285.67
You save:
B$129.85
Buy Class
R558.35
List Price:
R1,023.65
You save:
R465.29
Buy Class
Лв54.82
List Price:
Лв100.51
You save:
Лв45.68
Buy Class
₩41,264.67
List Price:
₩75,651.90
You save:
₩34,387.22
Buy Class
₪112.42
List Price:
₪206.11
You save:
₪93.68
Buy Class
₱1,729.07
List Price:
₱3,169.97
You save:
₱1,440.89
Buy Class
¥4,658
List Price:
¥8,539.67
You save:
¥3,881.67
Buy Class
MX$508.84
List Price:
MX$932.87
You save:
MX$424.03
Buy Class
QR109.27
List Price:
QR200.33
You save:
QR91.06
Buy Class
P426.09
List Price:
P781.18
You save:
P355.08
Buy Class
KSh4,012.30
List Price:
KSh7,355.88
You save:
KSh3,343.58
Buy Class
E£1,439.62
List Price:
E£2,639.30
You save:
E£1,199.68
Buy Class
ብር1,716.15
List Price:
ብር3,146.27
You save:
ብር1,430.12
Buy Class
Kz25,095
List Price:
Kz46,007.50
You save:
Kz20,912.50
Buy Class
CLP$28,811.40
List Price:
CLP$52,820.90
You save:
CLP$24,009.50
Buy Class
CN¥217.19
List Price:
CN¥398.18
You save:
CN¥180.99
Buy Class
RD$1,746.04
List Price:
RD$3,201.08
You save:
RD$1,455.04
Buy Class
DA4,037.01
List Price:
DA7,401.18
You save:
DA3,364.17
Buy Class
FJ$67.86
List Price:
FJ$124.41
You save:
FJ$56.55
Buy Class
Q233.16
List Price:
Q427.46
You save:
Q194.30
Buy Class
GY$6,279.59
List Price:
GY$11,512.58
You save:
GY$5,232.99
Buy Class
ISK kr4,207.20
List Price:
ISK kr7,713.20
You save:
ISK kr3,506
Buy Class
DH303.35
List Price:
DH556.14
You save:
DH252.79
Buy Class
L530.55
List Price:
L972.68
You save:
L442.12
Buy Class
ден1,725.35
List Price:
ден3,163.14
You save:
ден1,437.79
Buy Class
MOP$241.73
List Price:
MOP$443.17
You save:
MOP$201.44
Buy Class
N$559.08
List Price:
N$1,024.98
You save:
N$465.90
Buy Class
C$1,101.75
List Price:
C$2,019.87
You save:
C$918.12
Buy Class
रु4,027.97
List Price:
रु7,384.62
You save:
रु3,356.64
Buy Class
S/112.91
List Price:
S/207.01
You save:
S/94.09
Buy Class
K115.77
List Price:
K212.26
You save:
K96.48
Buy Class
SAR112.51
List Price:
SAR206.27
You save:
SAR93.76
Buy Class
ZK803.21
List Price:
ZK1,472.55
You save:
ZK669.34
Buy Class
L139.46
List Price:
L255.68
You save:
L116.22
Buy Class
Kč704.44
List Price:
Kč1,291.48
You save:
Kč587.03
Buy Class
Ft10,912.14
List Price:
Ft20,005.60
You save:
Ft9,093.45
Buy Class
SEK kr327.86
List Price:
SEK kr601.08
You save:
SEK kr273.21
Buy Class
ARS$26,286.87
List Price:
ARS$48,192.59
You save:
ARS$21,905.72
Buy Class
Bs207.27
List Price:
Bs380
You save:
Bs172.73
Buy Class
COP$117,110.49
List Price:
COP$214,702.57
You save:
COP$97,592.07
Buy Class
₡15,306.75
List Price:
₡28,062.39
You save:
₡12,755.63
Buy Class
L743.09
List Price:
L1,362.34
You save:
L619.24
Buy Class
₲224,793.28
List Price:
₲412,121.02
You save:
₲187,327.73
Buy Class
$U1,150.06
List Price:
$U2,108.44
You save:
$U958.38
Buy Class
zł121.40
List Price:
zł222.57
You save:
zł101.17
Buy Class
Already have an account?
Log In
Previous
Next
Sign Up
Signup to access thousands of classes
Continue with Facebook
Continue with Google
OR
Continue with Email
Already a member?
Log In
By registering for a LearnDesk account, you agree to our
Terms of Service
and
Privacy Policy
.
Share
Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.
Share with Google Contacts