Multi Threading in Hindi (मल्टी थ्रेडिंग क्या है?) – Operating System

Hello दोस्तों ehindilearning.com मे आपका स्वागत है आज के इस Article मे हम What is MultiThreading in Operating System – in Hindi के बारे मे जानेंगे।

What is Multi-Threading in OS – in Hindi

Thread एक path होता है जो कि किसी भी program के execution के दौरान follow किया जाता है। Multi-Threading किसी भी program या operating system process को एक समय पर एक से ज्यादा user या किसी एक user द्वारा की गई एक से ज्यादा request को manage करने की ability प्रदान करता है। प्रत्येक user जब किसी program या system service के लिए request करता है तो इस program को thread के तौर पर separate identity प्रदान करके रखा जाता है।

इसको Lightweight Process भी कहा जाता है जो कि किसी भी application की performance को improve करने का एक तरीका है। यह किसी भी operating system मे overweight thread को कम करके उसकी performance मे सुधार करता है। प्रत्येक thread किसी process को belong करता है कोई भी thread किसी process के बिना exist नहीं करता है।

इनका इस्तेमाल Network server और Web server को implement करने मे भी किया जाता है। यह shared memory multiprocessors मे किसी भी application के parallel execution के लिए suitable foundation प्रदान करते है। आजकल threading का इस्तेमाल widely किया जा रहा है आजकल हम internet पर भी transactional process मे भी इसका इस्तेमाल कर रहे है।

Threading एक ऐसा segment है जो code को छोटे छोटे lightweight parts मे divide कर देता है जिससे कि CPU पर काम बोझ पड़ता है और यह किसी भी process को आसानी से पूरा कर लेता है। प्रत्येक thread का अपने independent resource ओटे है जिनके माध्यम से यह किसी भी process का execution कर पाता है, हम threads की संख्या को बढ़ाकर multiple processes को भी एक बार मे execute कर सकते है।

Also Read:- What is Process Management (in OS) in Hindi – प्रोसेस मैनेजमेंट…

 

Types of Thread in Hindi

यह दो प्रकार का होता है:-

User Level Threads

Kernel Level Threads

 

User Level Threads

इस प्रकार की threading मे thread management kernel किसी भी प्रकार के thread के existence के लिए aware नहीं होता है। Thread Library मे thread को create या destroy करने, threads के बीच data और messages को pass करने के लिए, thread execution को schedule करने के लिए और threats context को save और restore करने के लिए code का इस्तेमाल करता है।

इन threads का इस्तेमाल application programmer अपने programs मे इस्तेमाल करते है।

 

Advantages of user level threads in Hindi

  • इसमे thread switching के लिए kernel mode privileges की आवश्यकता नहीं होती है।
  • User level thread को किसी भी operating system पर run किया जा सकता है।
  • इसमे शेडयूलिङ्ग application specific हो सकती है।
  • इस प्रकार के threads को जल्दी create और manage किया जा सकता है।

 

Disadvantages of user level threads in Hindi

  • Multithreading application मल्टिप्रोसेसींग का लाभ नहीं ले सकती है।

 

Kernel Level Threads

Kernel level threads मे thread management का काम kernel के द्वारा किया जाता है। यहाँ पर application area मे कोई भी thread management code नहीं होता है। kernel threads को सीधे operating system के द्वारा support प्रदान किया जाता है। यहाँ पर किसी भी application को multithreaded करने के लिए program किया जा सकता है। एक application के अंतर्गत आने वाले सभी threads सिंगल प्रोसेस को support करते है।

यह सम्पूर्ण रूप से किसी भी process के लिए context information को maintain करता है और साथ ही किसी process के अंतर्गत individual thread के लिए भी context information को maintain करता है। kernel के द्वारा thread के आधार पर scheduling की जाती है।

 

Advantages of Kernel level threads in Hindi

  • Kernel एक साथ बहुत सारी processes पर एक process से कई thread को schedule कर सकते है।
  • अगर processing के दौरान कोई thread block हो जाता है तो kernel किसी दूसरी thread को schedule कर देता है।

 

Disadvantages of Kernel level threads in Hindi

  • यह User level thread की तुलन मे thread को create और manage करने मे slower होते है।

 

Difference between User level thread and Kernel level thread in Hindi

User Level Threads Kernel Level Threads
User level threads को जल्दी manage और Create किया जा सकता है। Kernel level threads को create और manage करना slow होता है। 

 

इसमे thread library के द्वारा user level पर implementation किया जाता है। इसमे kernel thread को create करने के लिए operating system सपोर्ट करता है। 

 

User level threads को किसी भी operating system पर run किया जा सकता है। Kernel level thread ऑपरेटिंग सिस्टम के लिए specific होते है। 

 

Also Read:- What is Linux Operating System in Hindi – लिनक्स क्या है? पूरी जानकारी…

   

Multithreading Models in Hindi

यह तीन प्रकार के होते है:-

  • Many to One Model
  • One to One Model
  • Many to Many Model

 

Many to One Model

इस model मे बहुत सारे user level threads को एक single kernel tread पर map किया जाता है। user space मे tread library के द्वारा thread management को handle किया जाता है।

 

One to One Model

यह model प्रत्येक user thread को handle करने के लिए एक separate kernel को create करता है। इस model के प्रत्येक implementation मे कितने thread create किए जाने चाहिए इसकी एक limit होती है।

 

Many to Many Model

One-to-One model और Many-to-One model के best features को combine करके many-to-many model सभी user threads को छोटे छोटे समान संख्या के kernel threads मे multiplex कर देता है।

 

What are Thread Libraries in Hindi

यह library प्रोग्रामर्स को thread के management और creation के लिए API प्रदान करते है। thread libraries को user space या kernel space के implement किया जा सकता है। user space मे पूरी तरह से implement किए गए API functions शामिल होते है।

 

Types of Thread in Hindi

यह तीन प्रकार के होते है:-

1:- POSIX Thread

2:- Win32 Thread

3:- Java Threads

 

Multithreading Issues in Hindi

  • Tread Cancellation
  • Signal Handling
  • Fork() System Call
  • Security Issues

Characteristics of Multithreading in Hindi

1:- Multithreading process मे प्रत्येक thread एक दूसरे के parallel रन करता है।

2:- यह memory area को separate करने की अनुमति नहीं देता है जिससे की memory की बचत होती है।

Conclusion

आज के इस article के माध्यम से हमने आज के What is MultiThreading in Operating System – in Hindi के बारे मे विस्तार से जाना। आशा है कि यह article आपके लिए helpful रहा होगा। अगर आपको यह article पसंद आया हो तो इसे अपने दोस्तों के साथ जरूर share कीजिए।

आप हमे comment के माध्यम से सुझाव दे सकते है। आप हमे email के माध्यम से follow भी कर सकते है जिससे कि हमारी नई article की जानकारी आप तक सबसे पहले पहुचे आप email के माध्यम से हमसे question भी पूछ सकते है।   

Leave a Comment