Threading Kaise Kare In Hindi?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Threading के लिए, आपको एक thread की जरूरत होती है। आपको दो शुरूआती कार्य की आवश्यकता होती है – एक तरह से आपको अपने thread को तैयार करना होगा, और दूसरी तरह से आपको अपने thread का चलना शुरू करना होगा।
2. ऊपर के दो कार्यों को करने के लिए, आपको अपने thread को आरामी लेने का एक उपयोगी प्रकार से अनुरोध करना होगा। यह उपयोगी प्रकार sleep ( ) है।
3. अगर आप thread के चलने पर आगे बढ़ना चाहते हैं, तो आपको yield ( ) कार्य को उपयोग करना होगा। यह कार्य आपके thread को आगे बढ़ाता है और अन्य threads को अपने thread से पहले चलाने देता है।
4. अगर आप thread को ठीक से समाप्त करना चाहते हैं, तो आपको join ( ) कार्य का उपयोग करना होगा। यह आपके thread के तुम्हारे thread के समाप्त होने तक अपने thread को wait करने के लिए करता है।