Question

In: Computer Science

Your answer 1. Explain why overhead is less when creating a new thread than the overhead...

Your answer

1. Explain why overhead is less when creating a new thread than the overhead to create a process.

   

Your answer

2. Discuss the types of parallelism and give examples of cases where each would be appropriate.

Your answer

3. Provide an example where a multicore-processor-based system could have neither concurrency nor parallelism.

4. Using Amdahl's Law, calculate the speedup gain for the following situation:

    75 percent parallel with (a) eight processing cores and (b) sixteen processing cores

    57 percent parallel with (a) two processing cores and (b) four processing cores

Your answer

    89 percent parallel with (a) four processing cores and (b) eight processing cores

Solutions

Expert Solution

Ans(2) :

  • Bit-level parallelism: It is the frame of parallel computing which is based on the expanding processor’s measure. It decreases the number of enlightening that the framework must execute in arrange to perform a errand on large-sized data. Example: Consider a situation where an 8-bit processor must compute the whole of two 16-bit integrability. It must to begin with whole up the 8 lower-order bits, at that point include the 8 higher-order bits, hence requiring two enlightening to perform the operation. A 16-bit processor can perform the operation with fair one instruction.
  • Data-level parallelism : Informational from a single stream work concurrently on a few data .Restricted by non-regular information control designs and by memory bandwidth.
  • Instruction-level parallelism: A processor can as it were address less than one instruction for each clock cycle phase. Multiple informational from the same instruction stream can be executed concurrently These enlightening can be re-ordered and gathered which are afterward on executed concurrently without influencing the result of the program. Usually called instruction-level parallelism.
  • Task Parallelism: Errand parallelism utilizes the deterioration of a errand into subtasks and after that distributing each of the subtasks for execution. The processors perform execution of sub assignments concurrently.

=======================================================================================

Ans(4) :

=======================================================================================

Ans(1) :

  • Less overhead to set up and end vs a process: since exceptionally small memory replicating is required (fair the string stack), strings are speedier to begin than processes. To begin a prepare, the entire handle range must be copied for the modern prepare duplicate to begin. While some operating frameworks as it were duplicate memory once it is adjusted (copy-on-write), this can be not all around ensured.
  • A multithreading may be a specialized frame of multitasking. Multitasking strings require less overhead than multitasking forms. I ought to characterize another term related to strings handle: A handle comprises of the memory space apportioned by the working framework that can contain one or more strings. A string cannot exist on its claim; it must be a portion of a prepare. A handle remains running until all of the non-daemon strings are done executing. Multithreading empowers you to type in exceptionally productive programs that make most extreme utilize of the CPU, since sit out of gear time can be kept to a least.

=======================================================================================


Related Solutions

Explain why marginal revenue is always less than average revenue(price) when demand is less than perfectly...
Explain why marginal revenue is always less than average revenue(price) when demand is less than perfectly elastic.
1. Explain why a monopolist’s profit when he price discriminates cannot be less than his profits...
1. Explain why a monopolist’s profit when he price discriminates cannot be less than his profits when he does not price discriminate. 2. The efficiency loss under perfect price discrimination is very high. True or False? 3. Consider a monopolist selling into two markets. Demand in the first market is given by P1 = 50 - 2Q1, and demand in the second market is given by P2 = 70 - 2Q2. Total cost for the monopolist is 50 - 10(Q1...
Please answer all. 84. Explain why marginal revenue is less than price for a monopolist. 85.  ...
Please answer all. 84. Explain why marginal revenue is less than price for a monopolist. 85.   What are the reasons for preferring competition to monopoly?
1a) Explain why we reject the null hypothesis when the p-value is less than the level...
1a) Explain why we reject the null hypothesis when the p-value is less than the level of significance? b) Explain to someone unfamiliar with statistics how to tell whether a statistical test is left, right, or two tailed. Explain what to look for in the wording of a hypothesis test and with the alternate hypothesis. c) Why can we never truly accept the null hypothesis?
In no less than 200, but no more than 300 words explain to the class your...
In no less than 200, but no more than 300 words explain to the class your definition of Quality of Care. Make sure that your definition is in your own words, you provide references in your definition, and you format your writing in APA style.
Please write your answer with no less than 500 words. 1- Discuss the impact of promotion...
Please write your answer with no less than 500 words. 1- Discuss the impact of promotion on demand within a supply chain ?
Why is a protein more soluble when the pH is greater than or less than its pI?
Why is a protein more soluble when the pH is greater than or less than its pI?
Explain why phenol is more acidic than cyclohexanol. Clarify your answer
Explain why phenol is more acidic than cyclohexanol. Clarify your answer
In less than 1 page, explain the concept of subnetting.
In less than 1 page, explain the concept of subnetting.
Question 1: Explain why a pound of TNT contains less energy than a pound of chocolate...
Question 1: Explain why a pound of TNT contains less energy than a pound of chocolate chip cookies but is more dangerous.   [Please enter your answer here and keep the double spaced format.] Question 2: Find the typical energy consumption of a man in a day and determine his daily average power in watts. [Please enter your answer here and keep the double spaced format.] Question 3: A person can do a sustained work with the power of about 100...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT