Efficient Java Multithreading and Concurrency with Executors

Learn all the concepts of Java's executors API from scratch in combination with parallel concepts of the threads API.

Efficient Java Multithreading and Concurrency with Executors

Learn all the concepts of Java's executors API from scratch in combination with parallel concepts of the threads API.
27
views
Share the link to this page
Copied

About the Class

Learn how to use the modern executor framework to do everything that you can do with the threads API. Develop skills and deepen your knowledge of advanced multi-threading concepts by learning various tips and techniques and becoming aware of pitfalls when using Executors API. And refresh your advanced threads-API concepts as well.

  • Do you know how to return values using the normal threads API and its Runnable?
  • Do you know the various ways of terminating threads midway for both APIs?
  • Do you know how to 'join threads' using Executors?
  • Do you know that you cannot catch stray exceptions leaked out from a thread by using try-catch block - neither in the threads API nor in the Executors one? And that this can lead to third-party code killing your scalable, high-performance, and high-availability enterprise application?
  • Do you know how to check if a task has finished execution using both APIs?
  • Do you know what are daemon threads and how to create them using Executors?
  • Do you know how to name Executor threads?
  • Do you know the various ways to schedule tasks for running in the future using both APIs? Do you know the various 'types' of scheduling?

If the answer to any of these questions is 'no', then this course is for you (provided that you know Java and the basics of multi-threading already). Learning from HD quality videos and nearly 6 hours of content will help you convert all these "nos" to "yeses" and will also give you an edge over your peers. Not only will this course help you learn how to get things done the multi-threaded way but also how to avoid the mistakes and pitfalls and thereby, increase your efficiency and productivity. All those long bug-fixing hours that you save can be spent finishing your other pending work or even for pleasure.

Avoid the pitfalls while writing multi-threaded code by learning pro-tips.

In my 18 years of experience building large enterprise applications, I have made all the mistakes in multi-threading that can be made. And believe me - multi-threading bugs are costly and multi-weekend-destroying to resolve.

I have used my vast experience to craft this course in such a manner so as to highlight the pitfalls that await a programmer and also provide tips to avoid those pitfalls. By going through this course, you will be years ahead of your peers who are yet to make all the mistakes that I have made.

Content and Overview

It is difficult to directly move from an older to a newer way of doing things if you are not comfortable with the older way also - you won't be able to map things from the old way to the new way. So, this course has been structured in such a manner that the Threads-API way of doing things is explained first and then the corresponding way to do them using the executors-API is explained. This will help you understand not only the new concepts of executors but also those of the threads-API.

The course starts with the basics first - How to create and run threads, How to name the threads, and How to return values from threads - using both the APIs. And then, it gradually moves on to increasingly advanced concepts like Terminating Threads, Catching Exceptions, Waiting for threads to finish without wasting CPU cycles, etc.

What will you learn in this course?

  • Exploit the ninja techniques learned from this course to write safe and error-free multithreading code in the first iteration itself.
  • Become confident to move away from the old threads-API and use the modern executors-API for all multi-threading needs instead.
  • Understand and exploit the various pro techniques to avoid pitfalls while using executors.
  • Understand and leverage the similarities and differences between the threads-API and the executors-API.
  • Rightly judge which executor pool to use for which needs.
  • Differentiate between safe and error-prone multi-threading code.
  • Appreciate the reasons why executors API was built even though the threads API already existed.
  • Write efficient multi-threading code by utilizing a plethora of pro tips and techniques.

Who should take this course?

  • This course is meant for all Java professionals who are familiar with Java's Threads-API but who are not comfortable with the Executors-Framework yet. For example - if you know how to terminate normal threads but not how to terminate Executor tasks or threads, then this course is for you.
  • Even if you do not know how to terminate normal threads, return values from normal threads, and the like - then also this course is for you. Professionals who are still using the old threads-API and want to have more practical knowledge about some advanced concepts of this API can also benefit from this course as threads-API is also covered in detail.
  • If you love to have deep knowledge of underlying concepts of technology or topic rather than just shallow familiarity, then this course is for you.

So, this course is suitable for programmers who want to learn about the executors API from scratch. It is also beneficial for those who want to refresh their concepts or learn the techniques of doing various operations using the threads-API. Detailed examples along with the source-code are provided on every concept for both APIs.

This course is probably not for you if you are looking to learn about Java multi-threading from scratch. This course is definitely not for you if you do not know how to code in Java

Author

Arun Kumar

Software Engineer & Architect
I am a software professional with around 18 years of experience building multi-tier enterprise systems for large investment banks, financial services providers and telecom companies. Right now, I am working with a multi-national telecom company based out of US. Most of my experience has been on Java/JEE and related technologies only but I have...

School

Arun Kumar's School

Requirements

  • You should have a solid grasp of core Java
  • You should have basic knowledge of multi-threading viz. what are threads, why are threads required, various states they can be in, what is synchronization, what is locking, etc
  • You should have Eclipse IDE and JDK 1.7 or above installed on your PC/Mac
  • You should have to know how to use Eclipse IDE for Java programming

Class Contents

One-time Fee
$30
List Price:  $55
You save:  $25
€28.14
List Price:  €51.60
You save:  €23.45
£24.09
List Price:  £44.16
You save:  £20.07
CA$41.27
List Price:  CA$75.66
You save:  CA$34.39
A$46.72
List Price:  A$85.65
You save:  A$38.93
S$40.84
List Price:  S$74.88
You save:  S$34.03
HK$234.96
List Price:  HK$430.77
You save:  HK$195.80
CHF 27.25
List Price:  CHF 49.96
You save:  CHF 22.70
NOK kr331.10
List Price:  NOK kr607.01
You save:  NOK kr275.91
DKK kr210.02
List Price:  DKK kr385.04
You save:  DKK kr175.01
NZ$50.90
List Price:  NZ$93.31
You save:  NZ$42.41
د.إ110.18
List Price:  د.إ201.99
You save:  د.إ91.81
৳3,292.30
List Price:  ৳6,035.90
You save:  ৳2,743.59
₹2,504.29
List Price:  ₹4,591.20
You save:  ₹2,086.91
RM143.50
List Price:  RM263.09
You save:  RM119.58
₦38,910
List Price:  ₦71,335
You save:  ₦32,425
₨8,354.66
List Price:  ₨15,316.88
You save:  ₨6,962.22
฿1,105.60
List Price:  ฿2,026.94
You save:  ฿921.33
₺977.88
List Price:  ₺1,792.79
You save:  ₺814.90
B$157.26
List Price:  B$288.31
You save:  B$131.05
R576.05
List Price:  R1,056.10
You save:  R480.04
Лв55.09
List Price:  Лв101.01
You save:  Лв45.91
₩41,411.40
List Price:  ₩75,920.90
You save:  ₩34,509.50
₪113.57
List Price:  ₪208.22
You save:  ₪94.64
₱1,726.98
List Price:  ₱3,166.13
You save:  ₱1,439.15
¥4,634.62
List Price:  ¥8,496.81
You save:  ¥3,862.18
MX$518.13
List Price:  MX$949.91
You save:  MX$431.77
QR109.83
List Price:  QR201.36
You save:  QR91.52
P415.82
List Price:  P762.35
You save:  P346.52
KSh4,005
List Price:  KSh7,342.50
You save:  KSh3,337.50
E£1,449.91
List Price:  E£2,658.17
You save:  E£1,208.26
ብር1,713.41
List Price:  ብር3,141.25
You save:  ብር1,427.84
Kz25,078.25
List Price:  Kz45,976.79
You save:  Kz20,898.54
CLP$28,989.60
List Price:  CLP$53,147.60
You save:  CLP$24,158
CN¥217.23
List Price:  CN¥398.26
You save:  CN¥181.03
RD$1,779.10
List Price:  RD$3,261.69
You save:  RD$1,482.58
DA4,037.55
List Price:  DA7,402.17
You save:  DA3,364.62
FJ$68.27
List Price:  FJ$125.17
You save:  FJ$56.89
Q234.16
List Price:  Q429.30
You save:  Q195.13
GY$6,279.74
List Price:  GY$11,512.87
You save:  GY$5,233.12
ISK kr4,230.60
List Price:  ISK kr7,756.10
You save:  ISK kr3,525.50
DH305.01
List Price:  DH559.20
You save:  DH254.18
L537.30
List Price:  L985.05
You save:  L447.75
ден1,735.70
List Price:  ден3,182.13
You save:  ден1,446.42
MOP$241.97
List Price:  MOP$443.62
You save:  MOP$201.64
N$573.33
List Price:  N$1,051.10
You save:  N$477.77
C$1,107.95
List Price:  C$2,031.25
You save:  C$923.29
रु4,008.62
List Price:  रु7,349.14
You save:  रु3,340.52
S/112.85
List Price:  S/206.89
You save:  S/94.04
K114.40
List Price:  K209.74
You save:  K95.33
SAR112.53
List Price:  SAR206.32
You save:  SAR93.78
ZK767.20
List Price:  ZK1,406.53
You save:  ZK639.33
L140.07
List Price:  L256.79
You save:  L116.72
Kč711.06
List Price:  Kč1,303.61
You save:  Kč592.55
Ft11,110.61
List Price:  Ft20,369.46
You save:  Ft9,258.84
SEK kr328.48
List Price:  SEK kr602.22
You save:  SEK kr273.74
ARS$26,092.74
List Price:  ARS$47,836.69
You save:  ARS$21,743.95
Bs208.04
List Price:  Bs381.40
You save:  Bs173.36
COP$116,969.14
List Price:  COP$214,443.42
You save:  COP$97,474.28
₡15,083.89
List Price:  ₡27,653.80
You save:  ₡12,569.91
L743.25
List Price:  L1,362.63
You save:  L619.37
₲222,746.06
List Price:  ₲408,367.79
You save:  ₲185,621.72
$U1,161.86
List Price:  $U2,130.07
You save:  $U968.21
zł121.74
List Price:  zł223.20
You save:  zł101.45

What's Included

Language: English
Level: Intermediate
Skills: Ninja Techniques, Java, Java Multithreading, APIs, Multithreading Code, Threads-API, Multithreading
Age groups: All ages
Certificate: On completion
Duration: 5 hours 28 minutes
59 Videos
2 Documents
0
Saves
27
Views
This class has not been saved

Sign Up

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.