Need help with computer science and an Operating Systems discussion 3

Jan 10th, 2016
SKTFaker
Category:
Computer Science
Price: $15 USD

Question description

Choose two of the three questions below and provide a well-researched and technically accurate answer. (Note: Choose questions that have been least addressed by your classmates.)

  • 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 says, “The order in which the various messages are interleaved is nondeterminate and may vary on consecutive runs of the program.” Dr. Tanenbaum is in effect saying the program has a built-in race condition. Explain why the addition of pthread_join(thread[i], NULL) after the status check inside the for() loop solves the race condition.

In your initial post, be sure to 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.

In your response posts to two of your peers, identify at least one alternative to their original post. For example, if the original post made by student [A] identified solution [X], a response should identify an alternative to [X] in the form of [Y] or [Z]. So, if the original post addresses Question 1 regarding how multi-threading is more scalable than a multi-process approach, a response should identify some of the drawbacks of multi-threading, or conversely, some of the benefits of multi-processing.


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Purdue University
PREMIUM TUTOR

Studypool has helped 1,244,100 students

7 Reviews


Summary
Quality
Communication
On Time
Value
kpcutie
Dec 4th, 2016
" Excellent job "
Hemapathy
Nov 21st, 2016
" all I can say is wow very fast work, great work thanks "
BlueOcean
Nov 7th, 2016
" Awesome! Exactly what I wanted. "
kevin12622
Oct 29th, 2016
" Goes above and beyond expectations ! "
ashleyisgod
Oct 16th, 2016
" Top quality work from this guy! I'll be back! "
likeplum4
Oct 7th, 2016
" Excellent work as usual "
Molly_Moon
Sep 23rd, 2016
" AMAZING as always! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors