Question 11) Assume there are four threads T1, T2, T3 and T4 with 100 instructions each. The instructions in each thread are dependent on the previous instruction, (for example in thread T1, 12 is dependent on I1, 13 on 12... so on) so that if I1 is issued in cycle x, 12 can be issued earliest at cycle x+2. The threads do not have any inter- thread dependency. Assume that each instruction takes one cycle to complete, and that the thread switching overhead is 2 cycles. a) Consider a single cycle MIPS processor with 1 PC and 1 Register File. If there is no interleaving of threads, meaning one thread completes before the start of the next thread, how many cycles are required for the completion of all four threads? b) For the same processor configuration, if there is a fine-grained multithreading of 1 instruction, what will be execution time in cycles for completion of all the four threads? Hint: I1 of T1 executes followed by a context switch to execute Il of T2... so on. If 11 of T1 is issued in cycle 1, the Il of T2 is issued in cycle 4 c) For the same processor configuration, if there is a coarse-grained multithreading of 10 instructions, how many cycles are required for the completion of all four threads? d) Now consider a single cycle MIPS processor with 4 PCs and 4 register files, and a single-issue hardware multithreading. How many cycles are required for the completion of all four threads? Hint: Each thread has its own PC and register file, so there is no context switching overhead, but each thread can issue only one instruction per cycle. For example, Il of r1 is issued at cycle 1, 11 of T2 is issued in cycle 2 and so on. e) Now consider a single cycle MIPS processor with 4 PCs and 4 Register Files, and a dual-issue simultaneous multithreading. How many cycles are required for the completion of all four threads? Hint: In This Case, Il1 of T1 and Il of T2 can be issued in cycle 1 followed by Il of T3 and I1 of T4 in cycle 2.
Question 11) Assume there are four threads T1, T2, T3 and T4 with 100 instructions each. The instructions in each thread are dependent on the previous instruction, (for example in thread T1, 12 is dependent on I1, 13 on 12... so on) so that if I1 is issued in cycle x, 12 can be issued earliest at cycle x+2. The threads do not have any inter- thread dependency. Assume that each instruction takes one cycle to complete, and that the thread switching overhead is 2 cycles. a) Consider a single cycle MIPS processor with 1 PC and 1 Register File. If there is no interleaving of threads, meaning one thread completes before the start of the next thread, how many cycles are required for the completion of all four threads? b) For the same processor configuration, if there is a fine-grained multithreading of 1 instruction, what will be execution time in cycles for completion of all the four threads? Hint: I1 of T1 executes followed by a context switch to execute Il of T2... so on. If 11 of T1 is issued in cycle 1, the Il of T2 is issued in cycle 4 c) For the same processor configuration, if there is a coarse-grained multithreading of 10 instructions, how many cycles are required for the completion of all four threads? d) Now consider a single cycle MIPS processor with 4 PCs and 4 register files, and a single-issue hardware multithreading. How many cycles are required for the completion of all four threads? Hint: Each thread has its own PC and register file, so there is no context switching overhead, but each thread can issue only one instruction per cycle. For example, Il of r1 is issued at cycle 1, 11 of T2 is issued in cycle 2 and so on. e) Now consider a single cycle MIPS processor with 4 PCs and 4 Register Files, and a dual-issue simultaneous multithreading. How many cycles are required for the completion of all four threads? Hint: In This Case, Il1 of T1 and Il of T2 can be issued in cycle 1 followed by Il of T3 and I1 of T4 in cycle 2.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
100%
Solve 11 with a, b, c d, e
Guarantee downvote for wrong answer
![Question 11) Assume there are four threads T1, T2, T3 and T4 with 100 instructions
each. The instructions in each thread are dependent on the previous instruction, (for
example in thread T1, 12 is dependent on I1, 13 on 12... so on) so that if Il is issued in
cycle x, 12 can be issued earliest at cycle x+2. The threads do not have any inter-
thread dependency. Assume that each instruction takes one cycle to complete, and
that the thread switching overhead is 2 cycles.
a) Consider a single cycle MIPS processor with 1 PC and 1 Register File. If there is no
interleaving of threads, meaning one thread completes before the start of the next
thread, how many cycles are required for the completion of all four threads?
b) For the same processor configuration, if there is a fine-grained multithreading of 1
instruction, what will be execution time in cycles for completion of all the four
threads?
Hint: Il of T1 executes followed by a context switch to execute Il of T2... so on. If I1
of T1 is issued in cycle 1, the Il of T2 is issued in cycle 4
c) For the same processor configuration, if there is a coarse-grained multithreading
of 10 instructions, how many cycles are required for the completion of all four
threads?
d) Now consider a single cycle MIPS processor with 4 PCs and 4 register files, and a
single-issue hardware multithreading. How many cycles are required for the
completion of all four threads?
Hint: Each thread has its own PC and register file, so there is no context switching
overhead, but each thread can issue only one instruction per cycle. For example, I1 of
T1 is issued at cycle 1, Il of T2 is issued in cycle 2 and so on.
e) Now consider a single cycle MIPS processor with 4 PCs and 4 Register Files, and a
dual-issue simultaneous multithreading. How many cycles are required for the
completion of all four threads?
Hint: In This Case, I1 of T1 and I1 of T2 can be issued in cycle 1 followed by I1 of T3
and Il of T4 in cycle 2.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F505c75d2-a5ee-43a5-80bc-81f7bfb4f960%2Fdc3f9a0f-8abb-447f-aabe-5d72895b4bf0%2Fhqfalgk_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Question 11) Assume there are four threads T1, T2, T3 and T4 with 100 instructions
each. The instructions in each thread are dependent on the previous instruction, (for
example in thread T1, 12 is dependent on I1, 13 on 12... so on) so that if Il is issued in
cycle x, 12 can be issued earliest at cycle x+2. The threads do not have any inter-
thread dependency. Assume that each instruction takes one cycle to complete, and
that the thread switching overhead is 2 cycles.
a) Consider a single cycle MIPS processor with 1 PC and 1 Register File. If there is no
interleaving of threads, meaning one thread completes before the start of the next
thread, how many cycles are required for the completion of all four threads?
b) For the same processor configuration, if there is a fine-grained multithreading of 1
instruction, what will be execution time in cycles for completion of all the four
threads?
Hint: Il of T1 executes followed by a context switch to execute Il of T2... so on. If I1
of T1 is issued in cycle 1, the Il of T2 is issued in cycle 4
c) For the same processor configuration, if there is a coarse-grained multithreading
of 10 instructions, how many cycles are required for the completion of all four
threads?
d) Now consider a single cycle MIPS processor with 4 PCs and 4 register files, and a
single-issue hardware multithreading. How many cycles are required for the
completion of all four threads?
Hint: Each thread has its own PC and register file, so there is no context switching
overhead, but each thread can issue only one instruction per cycle. For example, I1 of
T1 is issued at cycle 1, Il of T2 is issued in cycle 2 and so on.
e) Now consider a single cycle MIPS processor with 4 PCs and 4 Register Files, and a
dual-issue simultaneous multithreading. How many cycles are required for the
completion of all four threads?
Hint: In This Case, I1 of T1 and I1 of T2 can be issued in cycle 1 followed by I1 of T3
and Il of T4 in cycle 2.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY