SarkariResultess QA Bank

Threading में thread कैसे बनाते हैं? — error आने पर developer क्या करे?

Other 0 Views Verified
Threading में thread कैसे बनाते हैं? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified Correct Answer

from threading import Thread Thread(target=worker).start()

from threading import Thread Thread(target=worker).start()
Additional Explanation
threading.Thread target callable accept करता है। पहले traceback की exact line और input value check करें।
Verified

thread.create(worker)

thread.create(worker)
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

new Thread(worker)

new Thread(worker)
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

Thread.run(worker) only

Thread.run(worker) only
Additional Explanation
यह विकल्प सही समाधान नहीं है।