c# - Does a Thread stop itself once it's function scope is over? -


  थ्रेड myThread = नया थ्रेड (नया पैरामीटरेटेडथेडस्टार्ट (धागा फंक्शन)); सार्वजनिक शून्य थ्रेड फंक्शन () {// एक परिमित कोड चलाएं ...}   

सवाल है: myThread एक बार निपटारा threadFunction () खत्म हो गया है?

थ्रेड्स का निपटान करने की आवश्यकता नहीं है। थ्रेड वर्ग IDisposable को लागू नहीं करता है और इसके पास विच्छेदन विधि नहीं है।

जब आपका धागा पूरा हो जाता है को साफ करने के लिए कुछ विशेष करने की आवश्यकता नहीं है।

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -