Join David Gassner for an in-depth discussion in this video Extending the Thread class, part of Java Advanced Training.
Multithreading is a process where you can have multiple things going on at the same time.…When you setup multithreading, you are implementing what Java calls concurrency, concurrent operations…that can execute simultaneously.…When you run code within a single class, say within the Main class, the process is linear;…only one thing can be executed at a time.…But in order to create multiple threads, you can either create your new classes that extend…a class called thread, or you can implement an interface.…
I'll show you in this video how to create your own thread classes.…I'm starting in a project called Extending Thread where the Main class has an empty main method.…I won't do anything in the Main method quite yet; I'm going to start by creating a custom…class that extends the thread class.…I'll go to my Package, right- click and choose New Class.…I'll name the custom class MyThread, and I'll set its Superclass as the Thread class.…
Notice that the thread class is a member of the Java.long package.…
- Installing Java on Windows and Mac OS X
- Installing Eclipse
- Using new features such as simplified generics
- Working with advanced class structures (member, local inner, etc.)
- Using the Reflection API
- Navigating inheritance trees
- Managing unordered and ordered sets
- Peeking and polling with queues
- Testing and error handling
- Managing files and directories
- Working with I/O streams
- Next steps with Java
Skill Level Advanced
1. Getting Started
2. Java 7 New Features
3. Using Advanced Class Structures
4. Using the Reflection API
5. More of the Collections Framework
6. Testing and Advanced Exception Handling
Using the finally keyword5m 40s
7. Managing Files and Directories in Java 7
8. Working with I/O Streams
9. Working with Multi-threading
- 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.