Hi Please find below code: https://code.sololearn.com/cA15A23A6A3a I thought that "Completed..." should be printed before result as it was computed in async task. Why output is not in proper order?
3/10/2021 11:27:27 AM
Ketan Lalcheta3 Answers
New AnswerAsync != parallelism Parallelism is done via threads, and asynchrone is done via futures.
Please refer below sample code. We can observe that thread ID is different for async. https://code.sololearn.com/c6a166a6a57A
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message