Wednesday, July 1, 2026

Interview

 Q: When to use Parallel vs Async?

✅ Answer:

"Parallel is used for CPU-bound operations where computation is heavy,
whereas async/await is used for I/O-bound operations where the system waits for external resources like APIs or databases."

👉 Bangla:

"CPU heavy কাজ হলে Parallel, আর external wait থাকলে Async/Await ব্যবহার করি।"

FeatureParallelAsync/Await
TypeCPU-boundI/O-bound
ThreadMultiple threadsNon-blocking
PerformanceFast for heavy computationEfficient for waiting
Use CaseData processingAPI/DB/File

 

Interview

  Q: When to use Parallel vs Async? ✅ Answer: "Parallel is used for CPU-bound operations where computation is heavy, whereas async/awai...