Check out our courses:
Enterprise Java Spring Microservices: https://go.telusko.com/enterpriseJava
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : https://go.telusko.com/masterjava
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
Udemy Courses:
Spring: https://go.telusko.com/udemyteluskosp...
Java:- https://go.telusko.com/udemyteluskojava
Java Spring:- https://go.telusko.com/Udemyjavaspring
Java For Programmers:- https://go.telusko.com/javaProgrammers
Python : https://go.telusko.com/udemyteluskopy...
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodo...
website : https://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 : https://github.com/navinreddy20/Javac...
Java:- https://bit.ly/JavaUdemyTelusko
Spring:- https://bit.ly/SpringUdemyTelusko
More Learning :
Java :- https://bit.ly/3x6rr0N
Python :- https://bit.ly/3GRc7JX
Django :- https://bit.ly/3MmoJK6
JavaScript :- https://bit.ly/3tiAlHo
Node JS :- https://bit.ly/3GT4liq
Rest Api :-https://bit.ly/3MjhZwt
Servlet :- https://bit.ly/3Q7eA7k
Spring Framework :- https://bit.ly/3xi7buh
Design Patterns in Java :- https://bit.ly/3MocXiq
Docker :- https://bit.ly/3xjWzLA
Blockchain Tutorial :- https://bit.ly/3NSbOkc
Corda Tutorial:- https://bit.ly/3thbUKa
Hyperledger Fabric :- https://bit.ly/38RZCRB
NoSQL Tutorial :- https://bit.ly/3aJpRuc
Mysql Tutorial :- https://bit.ly/3thpr4L
Data Structures using Java :- https://bit.ly/3MuJa7S
Git Tutorial :- https://bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
https://www.telusko.com
Watch video #85 Threads in Java online without registration, duration hours minute second in high quality. This video was added by user Telusko 18 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 152,350 once and liked it 2.1 thousand people.