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 INodePile [] children: } public class Block implements Comparable { private long blockId: private long numBytes: private long gcnerationStamp: } 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: 1. INodeFile size is ? (assuming that an inode name consist of 8 chars, and that there are Blocks per INodeFile. Remember to include the amount of memory required to store the Blocks in your calculation) 2. INodeDirectory size is ? (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) Please write at least 50 words to explain their sizes. Also: 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

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions

Question

Fill out the amortization schedule below

Answered: 1 week ago

Question

Analyse the various techniques of training and learning.

Answered: 1 week ago

Question

Explain Intermediate term financing in detail.

Answered: 1 week ago

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

LO2 Discuss important legal areas regarding safety and health.

Answered: 1 week ago