Skip to content
KnowledgeCity

Advanced Java: Multithreading

Discover multithreading in Java, and see how to get more work done over the same amount of time
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Advanced Provider Scott Stanlick  3 Lessons ·  18m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In these lessons, you’ll learn how to leverage multithread processing to do more work in the same amount of time. We’ll go over how threads allow a program to operate more efficiently by doing multiple things at the same time and how they’re used to perform complicated tasks in the background without interrupting the main program or causing a screen to freeze.

You might see a sticker on your laptop that says “Intel CORE i7” or something similar, which tells you how many of these processors you have yourself. We’ll go over how these multiprocessors allow hundreds or even thousands of processes to run simultaneously on a single machine.

Programs must be written to take advantage of these processors, otherwise much of your computer sits idle. Discover how to create your own threads and how to configure them to fit a particular programming scenario.

What You'll Learn

  • Identify threads and explain how they function within a program
  • Describe thread states and the transitions between them
  • Explain how thread schedulers work
  • Create your own threads and configure them for a particular programming scenario
  • Leverage multithread processing to do more work in the same amount of time
  • Use multi-core processors to run multiple processes simultaneously on a single machine

Key Takeaways

  • Threads allow a program to operate more efficiently by doing multiple things at the same time.
  • Threads are used to perform complicated tasks in the background without interrupting the main program or causing a screen to freeze.
  • Multiprocessors allow hundreds or even thousands of processes to run simultaneously on a single machine.
  • Programs must be written to take advantage of multiple processors, otherwise much of the computer sits idle.
  • You can create your own threads and configure them to fit a particular programming scenario.

Frequently Asked Questions

What will I learn in this course?

You will learn how to leverage multithread processing to do more work in the same amount of time, how to create your own threads, and how to configure them to fit a particular programming scenario. The learning objectives are to identify threads and how they function, explain thread states and transitions, and describe how thread schedulers work.

What topics or lessons does this course cover?

The course covers three lessons: Main Thread and Code Execution, Thread Life Cycles, and Thread Pools and Schedulers.

What skills will I gain from this course?

You will gain skills in Hyperthreading, Java Architectures, Multi-Core Processors, Multi-Core Programming, Multithreading, and Threading Building Blocks.

Why does multithreading matter for performance?

Threads allow a program to operate more efficiently by doing multiple things at the same time, and multi-core processors let many processes run simultaneously. Programs must be written to take advantage of these processors, otherwise much of your computer sits idle.