cse-110-homework-3

# cse-110-homework-3 - Calculate the number of clock cycles...

This preview shows page 1. Sign up to view the full content.

Name: Student ID # CSE 110 Homework 3 Due: Friday, November 5, at 11:59 PM. Submit Homework 3 electronically via Blackboard. This assignment is worth a total of 12 points. You must show all work in order to receive any credit for your solutions. 1. What is the result of performing a two-bit left-circular shift on the hexadecimal byte 0D? Give your answer in hexadecimal form. (2 points) 2. The (±ctional) MST 3000 CPU has a 5-stage pipeline (fetch, decode, execute, writeback, and update), where each stage requires 1 CPU clock cycle to complete. 1. Compute the number of CPU cycles required to completely process a sequence of 6 machine instructions without pipelining (1 point) 2. Compute the number of CPU cycles required to completely process a sequence of 6 machine instructions using pipelining (1 point) 3.
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Calculate the number of clock cycles that are saved by using pipelining (1 point) 3. Write a plain English translation of the following Pep/7 machine instruction (2 points): 0010 0001 0000 0000 0000 0010 4. Given the Java String variable assignment String sentence = "This is a sample sentence"; what will the following sequence of Java statements print? Explain why Java will print this result. (2 points) String x = sentence.substring(4, 10); System.out.println(x); 5. Consider the set of processes in the table on the right: The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0. Describe how these processes will be executed using round-robin (RR) scheduling, with a time quantum of 2. (3 points) Process Execution Time P1 10 P2 1 P3 2 P4 1 P5 5...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online