Multi-Threading using Java🔥🔥 | Java Multithreading in one video | HINDI
HTML-код
- Опубликовано: 2 окт 2024
- In this video, we are going to learn the whole basics of multithreading programming using java. we will cover all the basics starting from zero and till producer and consumer problem.
Multi-Threading using Java | Java Multithreading in one video | HINDI
Source Code: www.learncodew...
Important Videos:
➡️Learn JDBC in one video: • JDBC Crash Course in 1...
➡️Learn Python in One Video : • Learn Python in One Vi...
➡️Learn html in one video : • Jquery in one video in...
➡️Learn html form in one video : • Jquery in one video in...
➡️Learn JavaScript in one videos : • Learn JavaScript in O...
➡️Learn Form Validation using javascript and jquery : • Form Validation using ...
➡️Learn Css in one video : • Jquery in one video in...
➡️Jquery in one video : • Jquery in one video in...
Kotlin in one video : • Kotlin | Learn Kotlin ...
➡️Complete Python Project - RUclips downloader in one video : • Jquery in one video in...
Important Playlist:
➡️Learn Technology in One Vides: • Learn in one video : C...
➡️Programming Tips for Programmers: • Coding Tips and Discus...
➡️Complete Python for Beginners: • Complete Python Tutori...
➡️Important Python Projects: • Python Projects in Hindi
➡️Complete Servlet & JSP : • Servlet and Jsp (Serve...
➡️Complete JDBC ( Java Database Connectivity) : • JDBC(Java Database Con...
➡️Complete Java Project : TechBlog: • Full Java Advance Pro...
➡️Java Swing Projects: • Java Projects for begi...
➡️Java Core Concepts: • Java Core Tutorial
➡️Kya aap Jante hai Series: • kya app jante hai : s...
Important Links:
➡️OnlyJavaTech- Programming Tutorial:
➡️Free Hindi video courses:
➡️TechSoft INDIA: www.techsoftin...
➡️Follow me on instagram: / durgesh_k_t
➡️Follow my page : onlyjavatech: / onlyjavatech
topics covered:
multithreading in java,
multithreading in java hindi,
multithreading using java in Hindi,
what is multitasking in hindi,
what is mutiprocessing in hindi,
what is multithreading in hindi,
how to create threads in java ,
how to start threads in java,
how to perform operations with threads in java,
what are the methods of threads class,
how to implement the runnable interface,
how to make thread sleep in java,
what is daemon thread ,
how to create daemon thread in java,
how to implement producer and consumer problem,
how to make producer and consumer problem in java
Thead class implements Runnable interface ***at 14.30
Class always implements interface...
Class always extends another class
It's basic java concept
@@LearnCodeWithDurgesh Exactly, you are the person behind my interest in coding... I never been in love with coding. But your teaching always make things easy.
***Intresting Fact- An Interface extends another Interface :-) ***
@@LearnCodeWithDurgesh his saying that you tell us in your diagram thread class extends runnable interface at 14.30
@@LearnCodeWithDurgesh sir aap bohot badhiya sikhate ho ❤ thank you so much
U can learn interface and inheritance before learning multi threading
Pure internet par multithreading ka itna easiest way of learning kaha par bhi nhi milega... sirf yaha pe hi available hai... Thank You Durgesg Sir...
This is the best Multi Threading video in the whole RUclips
Your teaching is just way too good. It would be the best thing on earth if you start teaching DSA.
Please start DSA course also sir.
one of the best Multithreading explanation video on youtube
keep it up sir
thank u
Great...You are going to bring India at first position in the digital world by your teaching.
read so much content related multithreading , pr aaj gyan mila .sare concept clear ho gaye...🤟🤟🤟
Durgesh bhaiya is the best Trainer .......
Too good bhai.... And since it is in hindi....aur jyada acchha lagta h 😊😊
Detailed ,informative and easily understandable content. Great Job!
This video is very much informative to me. Aspiring to be a Java developer.
Really good post. Only one suggestion, producer method should have a return type and consumer method should not have any return type.
Threading Made Super easy .... 🙏Thank you
Thank you. I enjoyed the class. From Bangladesh.
Teaching level and voice level high🙏👍🏻
Awesome way of teaching thank you so much sir for this wonderful explanation
amazing. the synchronized part was really a nice example.
Amazing bro, great explanation. I never imagined i'll get that kind of practical implementation, other youtube videos be like- What is Multithreading, wait(), sleep(), notify() and The end.
A Big salute to you and your entire work man.🙌
first time clear samaj aaya ye wait notify concept..
Most interviews asked questions on the Executor framework. of thread Can you make video on that?
Best lecture on multithreading, god bless u
bhaii iss video ki pdf hh kya??
Next spring mvc please
Very informative, thank you so much!!!
thanks for explaining Producer consumer problem.
Sir . I don't like comparison. But you are impressive than Durga sir. Thanks
Great Work Bro..It is Really Helpful..Keep it Up Good Work!!!
bhai apne ThreadOp class banaya aur usme thread methods use kiya ..but apne ThreadOp class ko Thread ke sath extend nhi kiya ...pr apne bola tha ki methods use karne ke liye thread class use karna padta hai?
Thank you so much Sir...you made it very easy
Amazing Explaination Thankyou sir
great and easy explanation
Very nice sir
really amazing explanation
Mind-blowing video bhai
This is sufficient or we learn according to time
Using lambda expression-
public static void main(String[] args) {
Runnable myThread = () -> {
for (int i=0; i
Amazing work :D
how thread class extends runnable inteface? i think it should be implement as runnable is an interface.
sir you are amazing
Informative video
Thank You Sir!
Brilliant tutorial
AAG Lga Di
Sir you are great
nicely done....
Thank you
sir thread class runnable interface ko kaise extends kar shakta hai?
Thanks sir
its wrongly said that when parent thread dies, daemon thread will also die. it waits until JVM terminated or until daemon thread explicitly die using measures like Thread.stop().
Here's the code to understand the concept!
```
public class Multithreading {
public static void main(String[] args) throws InterruptedException {
Thread parentThread = new Thread(() -> {
// Creating a daemon thread inside the parent thread
Thread daemonThread = new Thread(() -> {
while (true) {
System.out.println("Daemon thread running...");
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
});
daemonThread.setDaemon(true); // Set as a daemon thread
daemonThread.start();
// Parent thread finishes execution
System.out.println("Parent thread is done.");
});
parentThread.start();
// Sleep main thread to keep program alive for a while
try {
Thread.sleep(5000); // Main thread sleeps for 5 seconds
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("Main thread exiting...");
}
}
```
Please make a video on codechef and codeforces competitions!
bhaii iss video ki pdf hh kya??
agr ho to send krdo
u r a champion
the programs for producer consumer, in consumer there is some issue. Output not coming as expected.
thank you
Thread class implements runnable NOT extends
nice video sir
Runnable is an interface and thread is a class..so thread (class)will implements Runnable (interface) not extends
Thank you bhai, kehr mcha rkhi apne
When exactly is the run () method in the thread called internally?
Tq vro!!!!!!!!!!!!!!!!!!
if thread class implemnets the runable then why need to implemnet it again in myanother class?
thanks u sir!!!!!
kindly help me out in this program how to do it
Implement two multithreaded classes, one of which will be used to print ‘H’, and
another one will be used to print ‘O’.The output should contain a single string containing N occurrences of “”HHO”, in the
same order.
public class Main {
static int c=0;
static int i;
public static class printH extends Thread {
//write your Code here:
}
public static class printO extends Thread {
//write your Code here:
}
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
Integer n = sc.nextInt();
System.out.println();
//Write your output here:
Sir what is executor frame work then
Awesome tutorial sir❣️
bhaii iss video ki pdf hh kya??
Hi Bro , Amazing vedio , can you explain me - Why have created a constructor of Consumer and producer , can we call the methods by simply using the Company object , please tell bro , in that case what would be the error?
sir wait throws checked exception so we have to handle it also in produce and consumer class???
Majaaaaaaaaaaaaaaaaa agya!
so kind of you to share the knowledge in this simple way i found it very helpul .
Too much repetition of same things many times which making video lengthy.
However content is very good
Worth it👏!!
just few days ago i attended a mock interview , interviewer asked about thread life -cycle and questions related to that , i wasn't clear with my approach ,, and already read tons of stuff regarding that but wasn't able to convince him,, after watching approx 1:30 hrs. video ,, i can explain it to anyone.
Btw how do we know what interviewers gonna ask us?
Thanks for explaining Multithreading!
It was really helpful!!!
Very helpful video
grt person
su = new SEARCHUPDATE();
su.start();---------------------> i click this button agian n agian than error ata hai
ise mien bar bar click karta hun tou yh error deta hai
" Exception in thread "Thread-8" java.lang.ArrayIndexOutOfBoundsException: 2 >= 2 "
Thank you sir🙏🙏🙏...you are doing great work......I love this MultiThreading video
I am just confused why constructor here... With Company parameters... Anybody can explain... Please do? 😥
ye kaise decide hota hai hame kitna thread create karna hai ye project ke requirement pe depend karta h kya aur hm maximum kitna thread create kar sakte hai
Project or program requirement ke hissab se aap thread bana sakte ho
why is product_item function void but consume_item is int?
Great Video but I think we don't need synchronised keyword here, as each method is being used by single thread meaning only one thread is using produce or consume method. synchronised is useful when same resource is being used by multiple threads.
kya gazab pdate hai sir mjaa aa gya etna lamba video ak baar dekha producer consumer project bhi bna liya oor mja bhi aa gya....
Sir spring boot pe series karo
Yes sir please
Yes sir
If u had give sleep time same for both then no need of wait and notify
Sir Aap ke samjane ka tarika Saurabh Shukla sir bhi bhaut accha hai kiyunki sir hm long Hindi Medium jo programming A tak nahi jante hai but video dekhne se bhaut cheez samaj jo hame college me samaj nahi aaya tha thank sir hamari dua AAP KHUB TARRKI KARE OR hame jaise gareeb bacche gayan deta rahen
One of the best channel for learning..I preferred this channel for any concept rather than other
Amazing Explanation Bro Producer Consumer superb and simply explained...
Durgesh you haven't covered Advanced Multithreading API's i.e , Executor Framework.
Kindly Make Video On Design Pattern In one video
Thanks Durgesh bhai,...for creating awesome content...
Thanks. Please make a video on join() two threads and notifyAll(). If created please share the link...
Producer consumer problem:-
56:19
How you have called wait() and notify() method directly without any thread class object.
Nice 😍🥰😍
please make video on DS sir
Every content is great ecplain but thread class implement runnable interface
Sir,
Kya aap ne MyAnotherThraed ko alag package me banaye hai ki dono ek hi package me Banega ..plzz koi bta do ??
Sir Spring mvc ka vdo bhi upload kro.
[Suggestion] Everything is great. But you need to give better object/variable names. I see you give t1, comp, f, like this. Instead you can go with Thread thread1, Company company. Simple! In case of boolean f = false; You should have given boolean isProduced = false; Rest all Great!
why company object passed to both producer and consumer?
Superb Sir
i have send you an emial please checkyour inbox its urgent
Bro please upload collection videos please I'm eagerly waiting
Ok bro i will try as soon as possible
@@LearnCodeWithDurgesh sir if u have pdf of this video then plzzz send me