Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

public class Accumulator { private double total: private int N: } public class Transaction { private final String who: private final Date when: private final

image text in transcribed

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 (e) and (f) 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: (e) INodeFile, assuming that an inode name consist of 8 chars, and that there are 3 Blocks per INodeFile. Remember to include the amount of memory required to store the Blocks in your calculation. (f) INodeDirectory, consider the same assumptions from INodeFile, and also assume that there are 10 INodeFiles per INodeDirectory. Remember to include the amount of memory required to store the INodeFiles in your calculation. 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