Discussion - Explain why choosing a multi-threaded approach

Question # 00843576 Posted By: wildcraft Updated on: 07/17/2023 08:21 PM Due on: 07/18/2023
Subject Computer Science Topic General Computer Science Tutorials:
Question
Dot Image

Q9DIK3

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

Dot Image
Tutorials for this Question
  1. Tutorial # 00839042 Posted By: wildcraft Posted on: 07/17/2023 08:22 PM
    Puchased By: 2
    Tutorial Preview
    The solution of Discussion - Explain why choosing a multi-threaded approach...
    Attachments
    Discussion_-_Explain_why_choosing_a_multi-threaded_approach.ZIP (18.96 KB)

Great! We have found the solution of this question!

Whatsapp Lisa