Join Ketkee Aryamane for an in-depth discussion in this video Using the Thread class to create and run a thread, part of Java EE: Concurrency and Multithreading.
- [Instructor] Okay. Let's take a look at the basic APIs…on the Java Standard Edition, first.…So, we'll go with the Thread class.…The Thread class is present in the java.lang package,…and the Thread class will help you to start a thread…and manage a thread in the application's run,…so whenever you want to create a thread…for your Java application, you will need to create…an instance of this class in order to start and run…an asynchronous task in your application.…Now, the job of the thread is something that you will define…for your own logic, so the Thread class has got a run method…which will allow you to define that asynchronous job…so that when you start the thread…then that job is going to execute…and then it is going to give you the output.…
So, the job is always defined under the run method.…Now, there is some default implementation…in the run method of the Thread class.…We do not want that,…so we'll have to create our own class which extends Thread…and then create an instance of it and start it off…so that it is picked up for execution.…
- What is concurrency?
- Processes and threads in Java SE
- Java EE concurrency APIs
- Working with the ManagedExecutorService, ManagedScheduledExecutorService, ManagedThreadFactory, and ContextService APIs
- Defining data access object (DAO) classes
- Adding methods to DAO classes
- Writing REST classes
- Creating custom thread factories
- Creating contextual proxies
- JTA transactions and concurrency
Skill Level Advanced
Java EE: Servlets and JavaServer Pages (JSP)with Ketkee Aryamane6h 14m Intermediate
1. Overview and Setup
2. Processes and Threads
3. Executor API
4. Java EE Concurrency APIs
5. Concurrency and Transactions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.