Since multiprocessing provides concurrency what advantage do

Since multi-processing provides concurrency, what advantage do threads provide?

-Can multiple process programs also be multi-threaded?

Solution

Since multi-processing provides concurrency, what advantage do threads provide?

Multi-processing is the concept of having more than one processor, and thereby running a process by each processor, which means multi-processing. More than one process is being executed at a time by multiple processors. Whereas, threads will run muti-threads of the same process. Here there is no need of multi-processors. Even a single processor can run multiple threads. The advantage with threads is that, they are light-weighed, and will share the memory space. In multi-processing, every process will have their own memory space, whereas, in multi-threading, the same memory space is shared by all the threads who belong to the same process.

Can multiple process programs also be multi-threaded? Yes multi-process programs can also be multi-threaded but should be handled carefully.

Since multi-processing provides concurrency, what advantage do threads provide? -Can multiple process programs also be multi-threaded?SolutionSince multi-proces

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site