Learning Java 9 - Databases and Multithreading in Java [Video]

Learning Java 9 - Databases and Multithreading in Java [Video]

James Cross

Comfortably build parallel applications in Java 9
Packt Subscription
FREE
$9.99/m after trial
Video
$10.00
RRP $124.99
Save 91%
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$10.00
$9.99 p/m after trial
RRP $124.99
Subscription
Video
Start a FREE 10-day trial

Frequently bought together


Learning Java 9 - Databases and Multithreading in Java [Video] Book Cover
Learning Java 9 - Databases and Multithreading in Java [Video]
$ 124.99
$ 10.00
JavaScript in Action - Build 3 Useful Code Components [Video] Book Cover
JavaScript in Action - Build 3 Useful Code Components [Video]
$ 186.99
$ 10.01
Buy 2 for $20.01
Save $291.97
Add to Cart

Video Description

Java programs can perform many actions in parallel, with each action being performed by a separate process known as a thread. A multi-threaded program might perform database access using one thread while another thread handles the display. Multithreading is a very powerful feature of the Java language. The downside to writing a multithreaded program is the additional complexity of dealing with the thread model. To solve this, we will start by examining the different types of databases available and the benefits of each type, along with a few simple examples. We will learn how to work with simple database operations in Java, including a hands-on example in which we start by processing a JSON file containing vehicle information, before persisting those vehicle objects to a database.

Moving along, we will expand on our example to process a JSON text file containing data, before persisting those objects to a MySQL database, leveraging the Hibernate framework. Finally, we will learn some of the basics of concurrency in Java, before we jump into a real-life example. We will look at how we can accelerate processing a large list of data, assuming the time to process each element of the list is expensive. We will look at some crucial techniques and caveats to be aware of in Java, with a hands-on example of how processes can lock or not be thread-safe when threading issues are incorrectly considered. We will expand our example to look at how we can accelerate our file processing and data manipulation by leveraging Java's multithreading functionalities. This will include a discussion on thread safety, and some of the steps a developer must take to ensure multi-threaded applications do not encounter problems. Threads ensure users are not blocked as they are independent and can perform multiple operations at the same time. Also threads help your application to run smoothly, and make tasks easier to perform.

Taking this course will show you exactly how to write programs so multiple activities can proceed concurrently in the same program, making optimal use of the available resources, especially when your computer has multiple CPUs.

Style and Approach

This video will allow you to explore the exciting capabilities of concurrency in Java. After watching this video, you will be able to comfortably build parallel applications in Java 9.

Video Preview

What You Will Learn

  • What is a database and why do I need to use one in my application?
  • The two major database classes : SQL and NoSQL
  • How to integrate a database into your application
  • The need for multithreading
  • Speeding up applications using multithreading
  • Deadlocks and livelocks, and how to avoid them

Authors

Video Details

ISBN 139781788620611
Course Length1 hour 40 minutes
Read More

Read More Reviews

Recommended for You

JavaScript in Action - Build 3 Useful Code Components [Video] Book Cover
JavaScript in Action - Build 3 Useful Code Components [Video]
$ 186.99
$ 10.01
Java SE New Features: Covers Versions 9, 10, 11, and 12 [Video] Book Cover
Java SE New Features: Covers Versions 9, 10, 11, and 12 [Video]
$ 124.99
$ 10.00
Serverless JavaScript with AWS Lambda in 7 Days [Video] Book Cover
Serverless JavaScript with AWS Lambda in 7 Days [Video]
$ 124.99
$ 10.00
Java 9 Programming for Complete Beginners in 250 Steps [Video] Book Cover
Java 9 Programming for Complete Beginners in 250 Steps [Video]
$ 179.99
$ 10.01
Hands-On RESTful Web Services with Java 11 [Video] Book Cover
Hands-On RESTful Web Services with Java 11 [Video]
$ 124.99
$ 10.00
Hands-On Reactive Programming with Java 12 [Video] Book Cover
Hands-On Reactive Programming with Java 12 [Video]
$ 124.99
$ 10.00