Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
Java
10.5k+ articles
Difference Between
3.6k+ articles
Java Programs
1.9k+ articles
Java - util package
1.5k+ articles
Operating Systems
1.2k+ articles
Interview Questions
170+ articles
Java-Output
54 articles
Java-Networking
45 articles
Java-Class and Object
34 articles
Java Thread Class
1 article
Java-Multithreading
92 posts
Popular Articles
Recent Articles
Java Program to Create a Thread
Last Updated: 21 January 2025
Thread can be referred to as a lightweight process. Thread uses fewer resources to create and exist in the process; thread shares process re
...read more
Java
Java-Multithreading
Java Programs
Picked
wait() Method in Java With Examples
Last Updated: 06 June 2021
Inter-Thread communication is a way by which synchronized threads can communicate with each other using the methods namely wait(), notify()
...read more
Java
Java-Multithreading
Picked
Difference between wait and sleep in Java
Last Updated: 16 June 2021
Sleep(): This Method is used to pause the execution of current thread for a specified time in Milliseconds. Here, Thread does not lose its o
...read more
Java
Java-Multithreading
Difference Between
Picked
Similar Topics
Java
10.5k+ articles
Difference Between
3.6k+ articles
Java Programs
1.9k+ articles
Java - util package
1.5k+ articles
Operating Systems
1.2k+ articles
Interview Questions
170+ articles
Java-Output
54+ articles
Java-Networking
45+ articles
Java-Class and Object
34+ articles
Java Thread Class
1+ articles
How to Get the Id of a Current Running Thread in Java?
Last Updated: 11 November 2020
The getId() method of Thread class returns the identifier of the invoked thread. The thread ID is a positive long number generated when this
...read more
Java
Technical Scripter
Java-Multithreading
Java Programs
Technical Scripter 2020
Multithreaded Servers in Java
Last Updated: 09 November 2020
Prerequisites: Socket Programming in JavaMultithreaded Server: A server having more than one thread is known as Multithreaded Server. When a
...read more
Java
Java-Multithreading
Java Thread Safety and How to Achieve it?
Last Updated: 10 January 2025
As we know Java has a feature, Multithreading, which is a process of running multiple threads simultaneously. When multiple threads are work
...read more
Java
Java-Multithreading
Message Passing in Java
Last Updated: 01 October 2019
What is message passing and why it is used?Message Passing in terms of computers is communication between processes. It is a form of communi
...read more
Java
Java-Multithreading
Operating Systems
Picked
Java Thread.start() vs Thread.run() Method
Last Updated: 10 January 2025
In Java's multi-threading concept, start() and run() are the two most important methods. In this article, we will learn the main differences
...read more
Java
Java-Multithreading
Difference Between
Killing threads in Java
Last Updated: 20 September 2021
A thread is automatically destroyed when the run() method has completed. But it might be required to kill/stop a thread before it has comple
...read more
Java
Java-Multithreading
Technical Scripter 2018
Asynchronous and Synchronous Callbacks in Java
Last Updated: 13 August 2019
A CallBack Function is a function that is passed into another function as an argument and is expected to execute after some kind of event. T
...read more
Java
Technical Scripter
Java-Multithreading
Interrupting a Thread in Java
Last Updated: 11 July 2024
In Java Threads, if any thread is in sleeping or waiting state (i.e. sleep() or wait() is invoked), calling the interrupt() method on the th
...read more
Java
Java-Multithreading
Implement Runnable vs Extend Thread in Java
Last Updated: 04 October 2017
As discussed in Java multi-threading article we can define a thread in the following two ways: By extending Thread class By implementi
...read more
Java
Java-Multithreading
Multi-threaded chat Application in Java | Set 1 (Server Side Programming)
Last Updated: 03 September 2021
Prerequisites : Introducing threads in socket programmingIn the above article, a simple date time server was created which handled multiple
...read more
Java
Java-Multithreading
Java-Networking
Deadlock in Java Multithreading
Last Updated: 18 January 2025
Deadlock occurs in Java when multiple threads block each other while waiting for locks held by one another. To prevent deadlocks, we can use
...read more
Java
Java-Multithreading
Java Concurrency - yield(), sleep() and join() Methods
Last Updated: 16 January 2022
In this article, we will learn what is yield(), join(), and sleep() methods in Java and what is the basic difference between these three. Fi
...read more
Java
Java-Multithreading
First
1
2
3
4
5
6
7
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !