#85 Threads in Java

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

For More Queries WhatsApp or Call on : +919008963671

Udemy Courses:

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.

More Learning :

Donation:
PayPal Id : navinreddy20
Рекомендации по теме
Комментарии
Автор

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

mayankverma
Автор

When we run multiple software in a system there are OS is break them into smaller, and those small units are termed as threads 🎉

rajendertanwar
Автор

Thanks a lot sir... you are genius 👍🏻🙏🏻

suhanivishwakarma
Автор

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.

devpashishpatel
Автор

in chhattisgare - samaj aa ge bhai aacha kare samjha

ayushgupta
Автор

the moment you explaind threads just waooo❤

MariaBashir-fntt
Автор

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 .

onlystudy
Автор

Can you tell me which code editor you're using to run the code

purpleuniverse
Автор

sir

you can say Threads concept for java version 21

tmurari
Автор

I will write your words in my exam if i see threads on question paper

aiknow
Автор

hassan sir parnjit kaanunavar undenkil like👇

itsthaani