A computer system provides instructions with length 4 bytes each, and uses a page size of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A computer system provides instructions with length 4 bytes each, and uses a page size of 1K bytes. Assume the following nonsense program. ORG READ LOOP MOVE SUB A B BLT ***** STOP ORG DS ... ORG DS *** END 2040 B REGA, A REGA, B LOOP 2200 2500 5200 1 ; Load this into the address 2040 ; Read the content of B ; Move A to Register A ; Subtract the content of ; Register A from B ; If less then go to LOOP ; Load this into the address 2200 ; Define 2500 bytes ; Load this into the address 5200 ; Define 1 byte (1) (10 Points) Derive the corresponding reference string up to 10 memory references. (2) (15 Points) From the reference string above, determine the number of page faults generated using FIFO and LRU. Assume that all frames are initially empty and the number of physical frames is 2. A computer system provides instructions with length 4 bytes each, and uses a page size of 1K bytes. Assume the following nonsense program. ORG READ LOOP MOVE SUB A B BLT ***** STOP ORG DS ... ORG DS *** END 2040 B REGA, A REGA, B LOOP 2200 2500 5200 1 ; Load this into the address 2040 ; Read the content of B ; Move A to Register A ; Subtract the content of ; Register A from B ; If less then go to LOOP ; Load this into the address 2200 ; Define 2500 bytes ; Load this into the address 5200 ; Define 1 byte (1) (10 Points) Derive the corresponding reference string up to 10 memory references. (2) (15 Points) From the reference string above, determine the number of page faults generated using FIFO and LRU. Assume that all frames are initially empty and the number of physical frames is 2.
Expert Answer:
Answer rating: 100% (QA)
1 The corresponding reference string up to 10 memory references can be derived as follows Read B rea... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
15-43. Disc A in Figure P15-43 (IC = 8 kg m2), while rotating at 100 rpm, is lowered onto disc B (IC = 10.5 kg m2), causing the latter to rotate from rest. Assume no slipping and determine the...
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
A Ltd acquired a 60% shareholding interest in B Ltd in 20x4. B Ltd acquired a 30% shareholding interest in C Ltd in 20x5. A Ltd acquired a 30% shareholding interest in C Ltd in 20x6. For the year...
-
Reyes Rides is owned by Jason Reyes. The company has an August 31 fiscal year end and prepares adjustments on an annual basis. The following is an alphabetical list of its accounts at August 31,...
-
A matrix A is said to be skew-symmetric if AT = -A. Show that if a matrix is skew-symmetric then its diagonal entries must all be 0.
-
For a heat engine operating between the same two reservoirs (a) \(\eta_{\text {irrev }} \eta_{\text {rev }}\) (c) \(\eta_{\text {irrev }}=\eta_{\text {rev }}\) (d) \(\eta_{\text {irrev }} \geq...
-
The condensed income statement for the Consumer Products Division of Milner Industries Inc. is as follows (assuming no service department charges): Sales ...............$ 7,000,000 Cost of goods sold...
-
Program an Excel Spreadsheet to complete a Fixed Payment LoanAmortization Schedule based on the 5 inputs (see 1a below). Thisspreadsheet should work for any scenario chosen using the 5 inputsbelow...
-
Alex was in his friend Allison's home drinking straight vodka and doing drugs. Alex told Allison that he has not taken his prescribed mental health medications for two weeks. This did not concern...
-
Why does a company that has just filed a petition change the name on its bank accounts to include the company name and debtor in possession?
-
A buck converter with constant-frequency peak-current-mode control has VInom = 28 V, VO = 20 V, L = 301 H, fs = 100 kHz, and efficiency = 1. Find the ramp slope for the optimum compensation and the...
-
3. The three pulley systems below each support a force P = 100 lb and a block. Determine the weight of the block in lb that each system can support. TONTO P (a) CO (b) P P P DO
-
1. What is the stall speed at sea level of an airplane that weights 10,000 lbs., has a wing area of 300 sq.ft., and a maximum lift coefficient of 1.4? What is the stall speed if flaps that double...
-
1. A 2.50 x10 g ball is set upon a compressed spring. The spring is compressed by 1.20 x 10- Im and the spring has a constant k= 3.20 x 10 N/m .How high will the ball go up the frictionless track?...
-
2. Ruscitti is a shuffleboard player who is looking to slide a 420 g disc a distance precisely 10 m. If the coefficient of kinetic friction between the disc and the playing surfaces is 0.65,...
-
a2U II. Solve at 2 x2 0 < x < 4,t > 0 subject to the conditions U(0, t) = 0; U (4, t) = 0; U(x, 0) = 3Sinnx 2Sin5nx when 0 < x < T,t > 0. %3D
-
Using the parallel-axis theorem, determine the product of inertia of the area shown with respect to the centroidal x and y axes. 6 in. 9 in. 9 in- 4.5 in. in. 4.5 in.
-
Show that the circuit labeled "check for zero output" in Fig. 8-8 is an 8-bit NOR gate. Fig. 8-8 V N S C C7 F Check for zero output 8-bit ALU F-Fo 8 Output F B 8
-
Convert the following decimal numbers to the bases indicated. a. 7562 to octal b. 1938 to hexadecimal c. 175 to binary
-
It is necessary to design a pipeline for a fixed-point multiplier that multiplies two 8-bit binary integers. Each segment consists of a number of AND gates and a binary adder similar to an array...
-
A stepped bar, fixed at \(x=0\) and free at \(x=l\), has a cross-sectional area of \(2 A\) for \(0 \leq x
-
Estimate the fundamental frequency for the longitudinal vibration of a uniform bar fixed at \(x=0\) and free at \(x=l\) by assuming the mode shapes as (a) \(U(x)=c_{1}(x / l)\) and (b) \(U(x)=c_{1}(x...
-
Estimate the fundamental frequency of a fixed-fixed string, assuming the mode shape (a) \(W(x)=c_{1} x(l-x)\) and (b) \(W(x)=c_{1} x(l-x)+c_{2} x^{2}(l-x)^{2}\).
Study smarter with the SolutionInn App