#85 Threads in Java

  Рет қаралды 131,532

Telusko

Telusko

Күн бұрын

Check out our courses:
Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : bit.ly/java-spring-cloud
Udemy Courses:
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
Java For Programmers:- bit.ly/javaProgrammers
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusko.com/
In this lecture we will learn:
- Working of an operating system
- What is multitasking in Java
- Time-sharing process in CPU
- What are threads in Java?
- Multithreading in Java
#1
- When you run an application, the software that you have written will be running on an OS( Operating System).
- Below the OS, a layer is present that is known as Hardware.
- Software will always run on hardware.
- Hardware consists of:
RAM - acts as a temporary memory for processing
CPU - that executes something (processing done here)
- OS supports multiple software working at the same time and it means it supports Multitasking.
- Multitasking:
Multitasking is the ability of the CPU to perform multiple tasks simultaneously. There will be continuous context switching of the CPU between the tasks.
- CPU has a concept of time sharing which means each process runs for some short period of time one by one. The software runs parallelly by sharing the time in the CPU.
#2
- We can also divide our tasks into small units.
- In the same task or a program, we can have multiple threads running at the same time.
- Thread is light-weight and it is the smallest unit of a task.
- Multithreading:-
Multithreading is a system in which many threads are created from a process through which the computer power is increased.
Github repo : github.com/navinreddy20/Javac...
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com

Пікірлер: 28
@mayankverma3765
@mayankverma3765 8 ай бұрын
00:00 Threads are a way to run multiple parts of a program concurrently. 00:37 RAM acts as temporary memory for processing 01:16 Multitasking is the ability of an OS to run multiple software simultaneously. 01:56 Time sharing allows for multitasking on an OS 02:31 Breaking down a task into multiple processes 03:14 Multithreading allows for efficient multitasking in software 03:52 Multiple threads can run tasks simultaneously 04:34 Threads are lightweight and can share resources
@Fyodor-xq3ly
@Fyodor-xq3ly 5 ай бұрын
How did you do that? By AI or by yourself?
@elvinmustafayev9188
@elvinmustafayev9188 Жыл бұрын
Thanks for great explanation
@sho2648
@sho2648 3 ай бұрын
this is so helpful thank you so much
@TechieAmi
@TechieAmi 8 ай бұрын
Excellent teaching way❤
@rajendertanwar1881
@rajendertanwar1881 10 ай бұрын
When we run multiple software in a system there are OS is break them into smaller, and those small units are termed as threads 🎉
@syedadil7256
@syedadil7256 Жыл бұрын
Thank you sir 15 more to go......
@MariaBashir-fn2tt
@MariaBashir-fn2tt 9 ай бұрын
the moment you explaind threads just waooo❤
@ayushgupta1340
@ayushgupta1340 6 ай бұрын
in chhattisgare - samaj aa ge bhai aacha kare samjha diye.......
@developerash14
@developerash14 4 ай бұрын
The video discusses the concept of threads in Java, explaining how they allow multiple tasks to run simultaneously within a program. Threads enable multitasking and dividing tasks into smaller units, allowing for efficient resource sharing and parallel execution. The importance of threads in software development is emphasized for future exploration in upcoming videos. Key moments: 00:00 Threads in software enable multitasking and dividing tasks into smaller units, improving efficiency and performance. -Multitasking in operating systems allows for multiple software to run simultaneously, supported by time-sharing on the CPU. -Threads in software enable multiple tasks to run concurrently within the same program, enhancing efficiency and performance. 03:40 Threads enable parallel execution of tasks, sharing resources, and improving efficiency in software development. They are essential for handling multiple operations simultaneously. -Threads allow multiple players, movements, and actions in video games to occur simultaneously, enhancing the gaming experience. -In programming, tasks are represented as threads, which can run concurrently and share resources, leading to efficient software execution.
@purpleuniverse5432
@purpleuniverse5432 7 ай бұрын
Can you tell me which code editor you're using to run the code
@g.pragadheeswaran5094
@g.pragadheeswaran5094 7 ай бұрын
VS Code
@shadows7355
@shadows7355 Ай бұрын
Vs code
@tmurari9452
@tmurari9452 Ай бұрын
sir you can say Threads concept for java version 21
@onlystudy7943
@onlystudy7943 4 ай бұрын
my personal advise to the biggener if you learn java that it is only source to learn follow whole series and also if you go for paid course .
@sharadhdeshpande
@sharadhdeshpande Жыл бұрын
Thanks
@America_ya_everyday
@America_ya_everyday 11 ай бұрын
Wow you're rich
@esgslayer2op757
@esgslayer2op757 Жыл бұрын
When Bprak started teaching 🤔
@techfreak8854
@techfreak8854 10 ай бұрын
Jokes apart i didn't find good tutor of programming languages better than him
@anupamr437
@anupamr437 9 ай бұрын
Bprak and Navin Reddy are actually two threads running almost similar method.
@rohansathe-1054
@rohansathe-1054 8 ай бұрын
😂😂😂😂
@PREDATOR00742
@PREDATOR00742 5 ай бұрын
😂😂😂😂😂😂😂
@aiknow1313
@aiknow1313 Ай бұрын
I will write your words in my exam if i see threads on question paper
@ayodhyarode4522
@ayodhyarode4522 9 ай бұрын
🙏❤️👍
@itsthaani2879
@itsthaani2879 2 ай бұрын
hassan sir parnjit kaanunavar undenkil like👇
@ratnesh-ug4oq
@ratnesh-ug4oq 4 ай бұрын
you look like bhoopendar jogi
@user-zt8yp1ju4c
@user-zt8yp1ju4c 2 ай бұрын
2050 ill kanunavr undo
@ishasagar9289
@ishasagar9289 6 ай бұрын
Bad explanation 🤮
#86 Multiple Threads in Java
11:30
Telusko
Рет қаралды 112 М.
FANG Interview Question | Process vs Thread
3:51
ByteByteGo
Рет қаралды 300 М.
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 3,8 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 28 МЛН
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 903 М.
#82 Ducking Exception using throws in Java
9:55
Telusko
Рет қаралды 63 М.
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1 МЛН
#83 User Input using BufferedReader and Scanner in Java
11:48
Java threads 🧵
16:01
Bro Code
Рет қаралды 109 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 809 М.
Java Concurrency and Multithreading - Introduction
14:32
Jakob Jenkov
Рет қаралды 240 М.
Java ExecutorService - Part 1 - Introduction
10:12
Defog Tech
Рет қаралды 411 М.
Handle 1,000,000 Threads with Java and Spring Boot !!!
21:50
Daily Code Buffer
Рет қаралды 21 М.
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 66 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,9 МЛН
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 3,6 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,6 МЛН