Question

In: Computer Science

1. Explain how threads are used by the CPU to process tasks by describing a modern...

1. Explain how threads are used by the CPU to process tasks by describing a modern example, e.g., the multi-core mobile phone that you use every day has an interesting organisation of threads. However, it can be any other modern example of hardware that uses ―threads.

2. There are a number of techniques used by CPU designers to improve the performance of their processors. However, these optimisation strategies do not always work – for some workloads, they may have no effect, or even cause performance to degrade. What is a circumstance where simultaneous multi-threading (S.M.T.) cannot offer any advantage, or possibly even cause a performance decrease

Solutions

Expert Solution

1). ANSWER :

GIVENTHAT :

How threads are used by the CPU to process tasks :

How Threads Work

So, are you still with us? We finally made it to threads!

A thread is the unit of execution within a process. A process can have anywhere from just one thread to many threads.

Process vs. Thread

When a process starts, it is assigned memory and resources. Each thread in the process shares that memory and resources. In single-threaded processes, the process contains one thread. The process and the thread are one and the same, and there is only one thing happening.

In multithreaded processes, the process contains more than one thread, and the process is accomplishing a number of things at the same time (technically, sometimes it’s almost at the same time—read more on that in the “What about Parallelism and Concurrency?” section below).

We talked about the two types of memory available to a process or a thread, the stack and the heap. It is important to distinguish between these two types of process memory because each thread will have its own stack, but all the threads in a process will share the heap.

Threads are sometimes called lightweight processes because they have their own stack but can access shared data. Because threads share the same address space as the process and other threads within the process, the operational cost of communication between the threads is low, which is an advantage. The disadvantage is that a problem with one thread in a process will certainly affect other threads and the viability of the process itself.

2). CPU designers to improve the performance of their processors :

CPUs no longer deliver the same kind of of performance improvements as in the past, raising questions across the industry about what comes next.

The growth in processing power delivered by a single CPU core began stalling out at the beginning of the decade, when power-related issues such as heat and noise forced processor companies to add more cores rather than pushing up the clock frequency. Multi-core designs, plus a boost in power and performance at the next processor node, provided enough improvement in performance to sustain the processor industry for the past several process nodes. But as the benefits from technology scaling slow down, or for many companies stop completely, this is no a longer viable approach.

This reality has implications well beyond CPU design. Software developers have come to expect ever-growing compute and memory resources, but the CPU no longer can deliver the kinds of performance benefits that scaling used to provide. Software programmability and rich feature sets have been a luxury provided by Moore’s Law, which has provided a cushion for both hardware and software engineers.

“Because of Moore’s Law, the way that computing has grown and accelerated is partly because Intel and others kept pushing on the next generation node, and thus the need to optimize the compute engine itself has been less important,” says Nilam Ruparelia, senior director for strategic marketing in Microsemi, a Microchip company. “But it also happened because software productivity has gone up faster than Moore’s Law. If you make it easy to program, you enable a greater number of people to program. The ability of software to do a variety of things has grown up significantly.”


Related Solutions

1) What is the main element used in modern battery technology, explain? and what makes a...
1) What is the main element used in modern battery technology, explain? and what makes a good battery?
Explain how the nursing process is used to safely give medications to patients.​
Explain how the nursing process is used to safely give medications to patients.​
Describe the mechanism and process of natural selection and how Darwin used it to explain the...
Describe the mechanism and process of natural selection and how Darwin used it to explain the diversity seen in his theory of common descent.
In separate threads, explain how one’s position on the political spectrum guides the construction of global...
In separate threads, explain how one’s position on the political spectrum guides the construction of global poverty as well as the solution to this problem.?
1- detail, in your own words, the process of drawing and describing the graph of a...
1- detail, in your own words, the process of drawing and describing the graph of a polar equation.
Explain the meaning of mezzanine finance, describing the circumstances in which it is most commonly used.
Explain the meaning of mezzanine finance, describing the circumstances in which it is most commonly used.
1. Explain what a process is and how activities in a process function as a system....
1. Explain what a process is and how activities in a process function as a system. Find an example of a process, and identify the different activities involved. How would you improve this process? What would that involve? 2. Find an example of a business, and identify the processes needed to deliver the product to the final customer. What do you think is the bottleneck in this process? How Would you suggest it be managed? Please explain this in great...
Explain the role of health education in health promotion. How is the nursing process used in...
Explain the role of health education in health promotion. How is the nursing process used in developing health education? Describe a contemporary issue, local or global, that a family may experience today. What steps would the nurse take to address these as part of a health education plan?
Completely and thoroughly explain how an analysis of Process Variation was used by any company that...
Completely and thoroughly explain how an analysis of Process Variation was used by any company that makes any type of Soap Product
1. An organization-specific list of tasks and their descriptions used as a basis to identify components...
1. An organization-specific list of tasks and their descriptions used as a basis to identify components of a job is known as Select one: a. task inventory analysis. b. competency-based analysis.( Incorrect) c. functional job analysis. d. the critical incident method 2. Before committing to creating a team, the organization should do a __________ analysis to evaluate the work and see if a team is appropriate. Select one: a. task (Incorrect) b. process c. skill d. job 3. A compressed...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT