1 / 25

Presentation 31 – Multicore, Multiprocessing, Multithreading, and Multitasking.

Presentation 31 – Multicore, Multiprocessing, Multithreading, and Multitasking. Objectives. At the end of this presentation, you will be able to:. Explain the difference between multitasking and multiprocessing. Explain the difference between multithreading and multiprocessing.

Télécharger la présentation

Presentation 31 – Multicore, Multiprocessing, Multithreading, and Multitasking.

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Presentation 31 – Multicore, Multiprocessing, Multithreading, and Multitasking.

  2. Objectives At the end of this presentation, you will be able to:

  3. Explain the difference between multitasking and multiprocessing. • Explain the difference between multithreading and multiprocessing. • List several disadvantages of achieving multiprocessing by using multiple MPU packages. • Explain the difference between cooperative and preemptive multitasking. • Explain the difference between symmetrical and asymmetrical multiprocessing. • Discuss the internal structure of the Pentium D, Core 2 Duo, and Core 2 Quad microprocessors.

  4. “Multi” — More than what? • Multitasking • Multithreaded • Multiprocessing • Multicore

  5. Multitasking • The apparent simultaneous execution of two or more programs by a single processor. • What appears to be simultaneous execution is actually concurrent execution. • Dates back to the earlier days of Windows.

  6. Think of Multitasking this way. Program 1 Processor Program 2

  7. Two types of Multitasking • Cooperative • Preemptive

  8. Cooperative Multitasking Program 1 Processor The Applications control the switching. Program 2

  9. Preemptive Multitasking Program 1 Processor Program 2 The operating system control the switching.

  10. Multitasking Program 1 Processor Program 2

  11. Multithreaded • A single Program or Application can be written so that it can be executed as two or more “threads” of instructions. • A “thread” can be thought of as a stand alone task. • For example, in a video processing application the video information could be processed as one thread; the audio as another.

  12. Think of Multithreading this way. Thread 1 Processor Application Thread 2

  13. Multithreading a Video Processing Application Application Thread 1 (Video) Processor Video Video Audio Thread 2 Audio

  14. Threads • Threads occur within a single application. • The application must be written for Multithreading. • Not all applications lend themselves to this form of parallelization. • The processor must support multithreading. • Not all processors do.

  15. Pentium 4 was optimized for multithreading. Logical Core 1 Thread 1 Thread 1 Thread 2 Thread 1 Logical Core 2 Thread 2 Pentium 4

  16. Pentium D Pentium 4 Pentium 4

  17. Multiprocessing • A single computer runs two (or more) separate programs at the same time. • Servers and workstations achieved this by using multiple processors in separate packages. • PCs achieve this by using multiple cores in a single package.

  18. Types of Multiprocessing (MP) • Symmetrical MP—The operating system assigns tasks as it sees fit. • Asymmetrical MP—The program designer chooses the processor at the time the program is written.

  19. Dual Package versus dual core. Dual Packages Dual Core CPU IC 2 Sockets 2 Heat sinks 2 Fans 2 Fan cable 2 Board Space X2 CPU IC 1 Sockets 1 Heat sinks 1 Fans 1 Fan cable 1 Board space X1

  20. Enter the Core 2 Duo • Because the Pentium D was made up of two Pentium 4 cores, it was not optimized for dual processing. • Intel redesigned the architecture of the CPU, optimizing it for multiprocessing. • The result is called “Core” architecture. Apparently, this is a new trade name that replaces “Pentium”. • One of the early processors to use this new architecture is the Core 2 Duo.

  21. Core 2 Design

  22. The Core 2 Extreme • Fastest of the Core 2 Duo series • Allows “over-clocking”, a technique that allows users to run the CPU at a higher clock speed than the manufacture recommends.

  23. The Core 2 Quad Second Core 2 Die First Core 2 Die

  24. The Core 2 Quad Single Core 2 Quad Die

  25. End

More Related