Promotion
CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Group
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
CodeGym
/
Java Blog
/
Multithreading in Java
Multithreading in Java
101 members
Leaderboard
Popular
New
Old
Pavlo Plynko
Multithreading in Java
22 March 2019 12:00
Multithreading: What the methods of the Thread class do
Hi! Today we'll continue to talk about multithreading. Let's examine the Thread class and what a few of its methods do. When we studied class methods previously, we usually just wrote this: -> . This won't work with Thread's methods :) ...
Oleksandr Miadelets
Multithreading in Java
9 August 2022 8:54
Multithreading in Java
Hi! First of all, congratulations: you've reached the topic of 'Multithreading'! This is a serious achievement — you've come a long way. But prepare yourself: this is one of the most difficult topics in the course. And it's not that we're using complex classes or lots of methods here...
Jesse Haniel
Multithreading in Java
22 March 2019 13:01
Thread synchronization. The synchronized operator
Hi! Today we'll continue to consider the features of multithreaded programming and talk about thread synchronization. What is 'synchronization'? Outside of the programming domain, it implies an arrangement that allows two devices or programs to work together. For example, a smartphone and computer...
Volodymyr Portianko
Multithreading in Java
22 March 2019 13:39
Managing threads. The volatile keyword and the yield() method
Hi! We continue our study of multithreading. Today we'll get to know the volatile keyword and the yield() method. Let's dive in :) When creating multithreaded applications, we can run into two serious problems. First, when a multithreaded application is running, different threads can cache ...
Oleksandr Miadelets
Multithreading in Java
30 August 2022 8:39
Difference Between a Mutex, a Monitor, and a Semaphore
Hi! When you studied multithreading on CodeGym, you frequently encountered the concepts of "mutex" and "monitor". Without peeking, can you say how they differ? :) If yes, well done! If not (this is most common), that's no surprise...
Viacheslav
Multithreading in Java
26 March 2020 18:18
Better together: Java and the Thread class. Part I — Threads of execution
Multithreading was built into Java from the very beginning. So, let's briefly look at this thing called multithreading. We take the official lesson from Oracle as a reference point: "Lesson: The "Hello World!" Application". We'll slightly alter...
Viacheslav
Multithreading in Java
27 March 2020 10:19
Better together: Java and the Thread class. Part II — Synchronization
So, we know that Java has threads. You can read about that in the review entitled Better together: Java and the Thread class. Part I — Threads of execution. Threads are necessary to perform work in parallel. This makes it highly likely...
Viacheslav
Multithreading in Java
31 March 2020 15:53
Better together: Java and the Thread class. Part IV — Callable, Future, and friends
In Part I, we reviewed how threads are created. Let's recall one more time. A thread is represented by the Thread class, whose run() method gets called. So let's use the Tutorialspoint online Java compiler and execute the following code...
Viacheslav
Multithreading in Java
1 April 2020 11:10
Better together: Java and the Thread class. Part V — Executor, ThreadPool, Fork/Join
So, we know that Java has threads. You can read about that in the review entitled Better together: Java and the Thread class. Part I — Threads of execution. Let's take another look at the typical code...
Viacheslav
Multithreading in Java
30 March 2020 9:43
Better together: Java and the Thread class. Part III — Interaction
A brief overview of the particulars of how threads interact. Previously, we looked at how threads are synchronized with one another. This time we will dive into the problems that may arise as threads interact, and we'll talk about how to avoid them. We will also provide some useful links for more in-depth study...
Viacheslav
Multithreading in Java
2 April 2020 11:51
Better together: Java and the Thread class. Part VI — Fire away!
Threads are an interesting thing. In past reviews, we looked at some of the available tools for implementing multithreading. Let's see what other interesting things we can do. At this point, we know a lot. For example, from "Better together: Java and the Thread class. Part I — Threads of execution", we know that...
Oleksandr Miadelets
Multithreading in Java
15 September 2022 12:07
Wait() Method in Java
In this article, we'll look at the wait() method to control thread, and the notify()/notifyAll() methods. These methods are defined in the base class java.lang.Object and, accordingly, the inheritance mechanisms that are in Java provide these methods to absolutely all classes...
Show more
1
2
Please enable JavaScript to continue using this application.