Tag: multithreading
-
JavaMultithreading in Java
Java’s multithreading feature enables the concurrent execution of two or more program components for maximum CPU efficiency. A thread refers…
June 28, 2022
-
JavaThe life cycle of a Thread
In Java, a thread can be in any of the following states at any given time. A thread is only…
June 29, 2022
-
JavaCreating a Thread in Java
A thread can be created in one of two ways: By extending the Thread class By implementing Runnable interface. Implementing…
July 1, 2022
-
JavaThread.sleep() method in Java
Thread.sleep() method in Java: The two variations of the sleep() method are available from the Java Thread class. The first…
July 5, 2022
-
JavaJava Thread Priority
What is Thread Priority? The concept of priorities in threads states that each thread has a priority. In layman’s terms,…
July 6, 2022
-
JavaSynchronization in Java
What is Synchronization, and why is it used? Multiple threads trying to access the same resources in a multithreaded program…
July 8, 2022
-
JavaInter-thread Communication in Java
What is Inter-thread Communication? Java has a mechanism called inter-thread communication that allows another thread to enter (or lock) a…
July 9, 2022
-
JavaJava.lang.ThreadGroup- class in Java
A group of threads is created by ThreadGroup class. It provides a practical method for controlling thread groups collectively. This…
July 11, 2022
-
C++Multithreading in C++
What is Multithreading? Multithreading is a subset of multitasking, which is the feature that allows your computer to run two…
November 3, 2022
-
PythonMultithreading In Python
Let’s look at Python threads first before presenting the idea of multithreading. Threads: Threads are quick processes (smaller versions of larger…
December 29, 2022
-
Pythonthreading Module In Python
Python threading, as we saw in the previous tutorial, allows us to run different parts of our program concurrently, which can…
December 30, 2022
-
PythonThread class and its Object
The Thread class in Python’s threading module is used to create and manage threads. We can extend this class to…
December 31, 2022