What is multithreading?

Last updated:9/19/2020 2:55:16 AM

1 Answers

Mayank Tripathi
Mayank Tripathi

Thread is basically a lightweight sub-process, a smallest unit of processing. Multiprocessing and multithreading, both are used to achieve multitasking

Multithreading is a process of executing multiple threads simultaneously. Its main advantage is:

Threads share the same address space.

Thread is lightweight.

Cost of communication between process is low.

Answer