+1 (218) 451-4151
glass
pen
clip
papers
heaphones

Explain why choosing a multi-threaded approach is more scalable as compared to a multi-process approach. Describe how threads or processes share data between them

Explain why choosing a multi-threaded approach is more scalable as compared to a multi-process approach. Describe how threads or processes share data between them

Provide a well-researched and technically accurate answer.

· Question 1: Explain why choosing a multi-threaded approach is more scalable as compared to a multi-process approach. Describe how threads or processes share data between them.

· Question 2: Assuming a computer has a single processor and a single core with no support for parallel execution, explain why running a multi-threaded program would show no performance improvement. Would inter-process communication be relevant in such a context?

· Question 3: The thread example in the course textbook on page 108 is an example of a POSIX program using threads.  If we were to add the line:  pthread_join(thread[i], NULL) after the status check inside the for() loop, how would this solve the race condition?

-Provide technical details supported by credible sources. You want to demonstrate that you have developed insights from your reading and are not simply restating the textbook material. Synthesize several sources to make your point and reference those sources so it is clear to other students how you drew your conclusions.

Ref:

https://httpd.apache.org/docs/2.2/mod/worker.html

https://web.stanford.edu/~ouster/cgi-bin/cs140-winter12/lecture.php?topic=process

https://www.techtarget.com/searchstorage/definition/race-condition