Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Got a comment that the image would not display, please try to refresh the page again or use another browser. public class Accumulator { private

image text in transcribed

Got a comment that the image would not display, please try to refresh the page again or use another browser.

public class Accumulator { private double total: private int N: } public class Transaction { private final String who: private final Date when: private final double amount: } public class FixedCapacityStackOfstrings { private String[] a = new String[C]: // stack entries private int N: // size } class INode implements Comparable { protected byte [] name: protected long modificationTime: protected long accessTime: } class INodeFile extends INode { private long header: private Block [] blocks: } class INodeDirectory extends INode { private INodeFile [] children: } public class Block implements Comparable { private long blockId: private long numBytes: private long generationStamp: } Please answer what size (c) and (d) are with at least 50 words explaining how you made the calculations and assumptions: Assuming a 64-bit CPU architecture and Java 7, given the class definitions described in Listing 1 compute the amount of memory needed by each of the following objects considering their respective assumptions: (c) FixedCapacityStackOfStrings, assuming capacity C=8 and fixed size string entries of size S=8 chars. Remember to include the amount of memory required to store the strings in your calculation. (d) Block Note that in all of your calculations you should assume a 64-bit CPU architecture and Java 7. Don't forget to consider the padding in your calculation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago