91
GB
What is 'std::stop_token' in C++20?
IN
C++20 में 'std::stop_token' क्या है?
A
Mechanism for cooperative thread cancellation
सहकारी धागा रद्दीकरण के लिए तंत्र
B
A mutex
एक म्यूटेक्स
C
An atomic flag
एक परमाणु ध्वज
D
A future
एक भविष्य
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
std::stop_token allows threads to check if cancellation was requested; used with std::jthread.
व्याख्या (हिन्दी)
std::stop_token थ्रेड्स को यह जांचने की अनुमति देता है कि क्या रद्दीकरण का अनुरोध किया गया था; std::jthread के साथ प्रयोग किया जाता है।