What is thread in python in hindi
Hello दोस्तों! आज मैं आपको इस पोस्ट में what is thread in Hindi के बारें में बताऊंगा, और इसके example को भी पढेंगे, तो चलिए शुरू करते हैं:- the smallest unit of program is called a thread. Multi threading का अर्थ है कि एक cost effective तरीके से एक बेहतर program का निर्माण किया जाये जिसमें की program से टूटा प्रत्येक thread का एक
निश्चित कार्य करने में सक्षम हो 1. एक thread class बनायी जाये तथा Run() को override किया जाये। 2. एक class define की जाये जो कि runnable interface को implement करे। Class A () Extend thread Public void run() { For(i=1;k3;i++) { System.out.println(i); } Class B() Extend thread Public void run() { For(j=1;k3;j++) { System.out.println(j); } Class C { public static void main( strong args[]) { NewA.start(); NewB.start(); } } } निवेदन:- अगर आपके लिए यह आर्टिकल useful रहा हो तो इसे अपने दोस्तों और classmates के साथ अवश्य share कीजिये, या अन्य विषयों से related कोई question हो तो नीचे कमेंट के द्वारा बताइए. thanks. |