Thread Safety Using Synchronization | Multithreading in Java - 3

preview_player
Показать описание
An excerpt from my new course titled "Master Practical Java Development".
In this course, you'll learn everything you need to know about the Java Programming Language and become a confident industry-ready core Java developer and get certified as a Java professional!
=========================================
➡️ Learn MORE:
=========================================
- Latest updates include Lambdas and Streams with Java 9 Features.
- Course Last Updated: 2023!
=========================================
➡️ Job Ready Programmer Socials:
=========================================
➡️ Welcome to The Complete Java Certification Course
- This course is designed to help you master the most in-demand and critical components for becoming a Core Java developer.
- Especially if you're going for a job interview or have a Java Project that needs your best performance.
- This course assumes no prior java experience so prior Java so it will take you from zero to hero!

➡️ COURSE INCLUDES:
Java Basics
Working with Java Data Types
Using Operators and Decision Constructs
Creating and Using Arrays
Using Loop Constructs
Working with Methods and Encapsulation
OOP Basics
Working with Inheritance
Java Class Design
Handling Exceptions
Working with Selected classes from the Java API
Advanced Class Design
Generics and Collections
Lambda Built-In Functional Interfaces
Java Stream API
Exceptions and Assertions
Use Java SE 8 Date/Time API
Java I/O Fundamentals
Java File I/O (NIO.2)
Concurrency
Building Database Applications with JDBC

➡️ The topics covered also include:
- Object Orientation which I think is not stressed enough in other Java courses so I've got a special focus on that throughout the lectures.
- You'll get plenty of practice writing classes and interfaces as well as countless methods with loops and if-else statements, exception handling and file processing as well as how to debug software using Eclipse.
- You'll also be mastering the collections framework and diving deep into java generics.
- You'll learn all there is to know about multi-threading and the JDBC API for working with a MySQL database.
- There are also practical projects scattered throughout the course so that you can practice the concepts as you learn them. For example one of the projects is related to a car dealership management system and another assignment involves processing files with stock market data. So as you can see I tried to keep the projects professional and industry relevant rather than cloning a game like flappy bird.

- I want this course to be the ultimate go-to resource for anyone that's looking to become a core Java programmer so I intend on adding more content to this course based on new technologies and student feedback.
- The content is Java 9 ready which means I'll show you how to upgrade to the latest version of Java which is version 9 and I'll teach you how to configure Eclipse to work with both Java 8 as well as version 9.
- I'm confident that you'll enjoy this course at least as much if not more than my other popular Java courses, but as always you've got a 30-day money-back guarantee no questions asked! Check out the preview lectures and join today!
=========================================
#jobreadyprogrammer #databasedeveloper #softwaredeveloper #career #sql #tableau #databases #database #webdeveloper #html #css #javascript #java #javabasics #javatutorial #javaprogramming #aws #admin #jobready #programmer
Рекомендации по теме
Комментарии
Автор

Thank you so much.
waiting for part 4 of this video .

TSH
Автор

Thanks so much for these 3 parts! Threads are fun and easy, not what I thought when I read the theory in my lecture haha

MegasXLR
Автор

Good video, but I just want to point out one point. You explain the errors with multi threading with shared memory by the cpu only being able to run one thread at a time. Modern multicore cpus can easily run 2-32 threads at the same time. The reason that what you see happen is because of shared memory. Local variables are stored in the L1 cache closest to the core and not accessible from other cores. The syncing between caches happen irregularly. You can force a value to be updated to all caches using the keyword volatile, using atomic data types or synchronisation. Or even locks.

sagen
Автор

I really like your 3 multithreading tutorials. I wish there was a part 4, 5, 6...

sesebere
Автор

Thank you for the videos. I'm still earning basics for Threading and this helped immensely. It would be awesome if you uploaded another video regarding Threading. Your explanations help me more than me rummaging through the internet looking for examples.

thomassidebottom
Автор

Your tutorials are great, you explain it in a very clean and simple way! Well done!

MonicaBGx
Автор

Wating for part 4 of this video.
And Thanks!!

qu_wd
Автор

Hi, the way you explain is just awesome. Please upload the video of thread pool/ executor. And how to synchronized two or more methods?

raviankit
Автор

waiting for part 4 of this video with 'join' and 'notify' implementation. Please upload...just FYI I subscribed

abhisheksoti
Автор

I am a little confused about your example here...You don't use a static class member...so should these values be difference, i.e. separate memory locations from each instance of the class? Nevermind, I see you are passing the same reference to one sequence class.

TheStarDragon
Автор

Well explained sir. I was using synchronised block inside run method, then it was printing 1 thread inside another thread. Kindly explain ?

amanagarwal
Автор

Very well explained thanks for your time

sattish
Автор

my sequence runs fine even without the sychronized keyword, but when i use the sleep method it starts repeating the numbers, how is that possible?

kostavsheoran
Автор

Would using "return ++java" also have evaded this particular problem?

bihazards
Автор

what about deadlocks and how to fix them?

ahmadrashideh
welcome to shbcf.ru