SlideShare a Scribd company logo
threading and multi threading in java
 A thread is a lightweight process which exists within
a program and executed to perform a special task.
 A process that has only one thread is referred to as a
single-threaded process.
 A process with multiple threads is referred to as a
multi-threaded process.
 Threading concept is very important in Java through
which we can increase the speed of any application.
 In single threaded environment, operations are
executes sequentially, next operation can execute
when the previous one is complete.
 A multithreaded program contains two or more
parts that can run.
 Each part can handle different task at the same
time.
 Multithreading is allows a program to execute many
tasks at the same time.
 In the multithreading concept, several multiple tasks
are run in a single process or program.
when you use MS-WORD you perform a many
different tasks such as printing, spell checking and
so on, at a time.
 Reduces the computation time.
 Improves performance of an application.
 Threads share the same address space so it saves
the memory.
threading and multi threading in java

More Related Content

PDF
How to make your ruby code faster with multithreading
PPSX
Java programming - intro
PPT
Elcuerpohumano1
PPTX
L22 multi-threading-introduction
PDF
09_Practical Multicore programming
PDF
Design Pattern From Java To Ruby
PPTX
Java package
PPT
Interface in java By Dheeraj Kumar Singh
How to make your ruby code faster with multithreading
Java programming - intro
Elcuerpohumano1
L22 multi-threading-introduction
09_Practical Multicore programming
Design Pattern From Java To Ruby
Java package
Interface in java By Dheeraj Kumar Singh

Viewers also liked (8)

PPTX
Advanced Introduction to Java Multi-Threading - Full (chok)
PPT
Packages in java
PPT
Threads in java
PPT
Packages and interfaces
PPT
Design Pattern From Java To Ruby
PPT
Java interfaces
PPT
Java packages
PPT
Java multi threading
Advanced Introduction to Java Multi-Threading - Full (chok)
Packages in java
Threads in java
Packages and interfaces
Design Pattern From Java To Ruby
Java interfaces
Java packages
Java multi threading
Ad

Similar to threading and multi threading in java (20)

PPTX
Basic Thread Knowledge
PPTX
Mulitthread
PPSX
Multithreading in-java
DOC
Not Imp
PDF
J threads-pdf
PPTX
Assignment-01.pptx
PDF
Concurrency in java
PPTX
Multithreading in java
PPTX
Multithreading
PPTX
Copy of Multithreaded Programming.pptx
PPTX
Thread (Operating System)
PDF
Multi t hreading_14_10
PPT
Distributed systems Chapter 3-Processes.ppt
PPTX
Difference Program vs Process vs Thread
PPTX
os ass.pptx
PDF
Processes and-threads
PPTX
multithreadingppt.pptx
PPTX
Concurrency-in-Web-Development in relation to parallel programming (1).pptx
PPTX
What is java?-Saurabh Upadhyay
PPTX
Multithreading
Basic Thread Knowledge
Mulitthread
Multithreading in-java
Not Imp
J threads-pdf
Assignment-01.pptx
Concurrency in java
Multithreading in java
Multithreading
Copy of Multithreaded Programming.pptx
Thread (Operating System)
Multi t hreading_14_10
Distributed systems Chapter 3-Processes.ppt
Difference Program vs Process vs Thread
os ass.pptx
Processes and-threads
multithreadingppt.pptx
Concurrency-in-Web-Development in relation to parallel programming (1).pptx
What is java?-Saurabh Upadhyay
Multithreading
Ad

Recently uploaded (20)

PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Cell Structure & Organelles in detailed.
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Institutional Correction lecture only . . .
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
human mycosis Human fungal infections are called human mycosis..pptx
01-Introduction-to-Information-Management.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Insiders guide to clinical Medicine.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pharma ospi slides which help in ospi learning
O7-L3 Supply Chain Operations - ICLT Program
Microbial disease of the cardiovascular and lymphatic systems
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
O5-L3 Freight Transport Ops (International) V1.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Cell Structure & Organelles in detailed.
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Institutional Correction lecture only . . .
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF

threading and multi threading in java

  • 2.  A thread is a lightweight process which exists within a program and executed to perform a special task.
  • 3.  A process that has only one thread is referred to as a single-threaded process.  A process with multiple threads is referred to as a multi-threaded process.  Threading concept is very important in Java through which we can increase the speed of any application.
  • 4.  In single threaded environment, operations are executes sequentially, next operation can execute when the previous one is complete.
  • 5.  A multithreaded program contains two or more parts that can run.  Each part can handle different task at the same time.
  • 6.  Multithreading is allows a program to execute many tasks at the same time.  In the multithreading concept, several multiple tasks are run in a single process or program.
  • 7. when you use MS-WORD you perform a many different tasks such as printing, spell checking and so on, at a time.
  • 8.  Reduces the computation time.  Improves performance of an application.  Threads share the same address space so it saves the memory.