Question: Would you choose multiprocessing or multithreading for a program with 1. task parallelism i.e., perform different tasks on the same data from the same file.

Would you choose multiprocessing or multithreading for a program with 1. task parallelism i.e., perform different tasks on the same data from the same file. 2. data parallelism i.e., perform the same task on different data from different files.why?

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Task parallelism If the tasks are CPUbound and utilize multiple cores efficiently consider multithreading Threads are lightweight and offer faster con... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!