1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
koban [17]
2 years ago
11

Consider an allocator that uses an implicit free list. The layout of each allocated and free memory block is as follows: 31 210

Header Block Size (bytes) Footer Block Size (bytes) Each memory block, either allocated or free, has a size that is a multiple of eight bytes. Thus, only the 29 higher order bits in the header and footer are needed to record block size, which includes the header and footer. The usage of the remaining 3 lower order bits is as follows: • bit O indicates the use of the current block: 1 for allocated, O for free. • bit 1 indicates the use of the previous adjacent block: 1 for allocated, O for free. • bit 2 indicates the use of the next adjacent block: 1 for allocated, O for free. Given the contents of the heap shown below, fill in the blank to show the new contents of the heap after a call to free(Ox400b010) is executed. Your answers should be given as hex values (omit leading zeros). Note that the address grows from bottom up, and each "cell" is four bytes. Assume that the allocator uses immediate coalescing, that is, adjacent free blocks are merged immediately each time a block is freed. Also assume that any blocks not shown are allocated. Contents of the heap before call to free(0x400b010): Contents Address 0x400b030 Ox17 0x400b02c Ox2 0x400b028 Ox1 0x4005024 Ox17 0x4006020 Oxid 0x400b01c Oxfffffffc 0x400b018 Oxfffffffd 0x400b014 Oxfffffffe 0x400b010 Oxffffffff 0x400bOOC Ox 1d 0x40050080x16 0x40050040x200b6010 0x4005000 0x800b5110 0x400affc 10x16 Contents of the heap after call to free(Ox400b010): Address Contents 0x4005030 Ox 17 0x2 0x400b02c B 0x400b028 Ox1 0x40050240x 17 0x400b020 Ox 1d Oxfffffffc 0x400b01c 0x400b018 0x4005014 Oxfffffffd Oxfffffffe Oxffffffff 0x4005010 0x400b0oc Ox 1d 0x400b008 Ox 16 Ox400b004 Ox200b601c Ox400b000 Ox800b5110 0x400affc Ox 16 Answer 1: 17 Answer 2: 17 Answer 3: 1d Answer 4: 1d Answer 5: 16 Answer 6: 16 Incorrect Question 7 0/3 pts Consider an allocator that uses an implicit free list. The layout of each allocated and free memory block is as follows: 31 210 Header Block Size (bytes) I------------ ----I---- ------------ - - - - - -- - -- - - - - Footer Block Size (bytes) ----------- Each memory block, either allocated or free, has a size that is a multiple of eight bytes. Thus, only the 29 higher order bits in the header and footer are needed to record block size, which includes the header and footer. The usage of the remaining 3 lower order bits is as follows: • bit O indicates the use of the current block: 1 for allocated, 0 for free. . bit 1 indicates the use of the previous adjacent block: 1 for allocated, O for free. • bit 2 indicates the use of the next adjacent block: 1 for allocated, O for free. Given the contents of the heap shown below, fill in the blank to show the new contents of the heap after a call to free(0x400b010) is executed. Your answers should be given as hex values (omit leading zeros). Note that the address grows from bottom up, and each "cell" is four bytes. Assume that the allocator uses immediate coalescing, that is, adjacent free blocks are merged immediately each time a block is freed. Also assume that any blocks not shown are allocated. Contents of the heap before call to free(0x400b010): Address Contents Ox400b030 Ox17 Ox2 0x400502 0x400b028 0x4005024 Ox1 Ox17 Ox400b020 Ox1d 0x400b01c Oxfffffffc Ox400b018 Oxfffffffd Ox400b014 Oxfffffffe Ox400b010 Oxffffffff 0x400b0Oc Oxid Ox400b008 Ox16 0x40050040x200b6010 0x400b000 0x800b5110 Ox400affc Ox16 Contents of the heap after call to free(0x400b010): Address Contents 0x400b030 Ox 17 Ox2 0x400b02C 0x400b028 Ox1 0x4005024 Ox 17 0x400b020 Ox 1d Ox400b01c Oxfffffffc Ox400b018 Oxfffffffd Oxfffffffe 0x4005014 0x400b010 Oxffffffff 0x400b00c Ox o 0x400b008 Ox 0 Ox400b004 Ox2005601c 0x400b000 0x800b511c 0x400affc Ox O
Computers and Technology
1 answer:
kakasveta [241]2 years ago
6 0

Answer:

Explanation:

start with what you know

You might be interested in
The S in SQRW stands for....
user100 [1]
B.................................
8 0
3 years ago
Read 2 more answers
The following pseudocode describes how a bookstore computes the price of an order from the total price and the number of the boo
ICE Princess25 [194]

Answer:

float bookExamplePrice = 15.25;

float bookTax = 7.5;

float bookShippingPrice = 2.0;

float Test = bookExamplePrice / 100;

float Tax = Test * bookTax;

float FullPrice = Tax + bookExamplePrice + bookShippingPrice;

// I don't know how to remove the numbers after the first two decimals.

// I tested this program. It works!

// The text after the two slashes don't run when you compile them.

printf("Price: $%.6f\n",FullPrice);

Explanation:

8 0
2 years ago
What differences in traffic patterns account for the fact that STDM is a cost-effective form of multiplexing for a voice telepho
fgiga [73]

Answer:

Answer explained below

Explanation:

statistical time division multiplexing (STDM) and frequency-division multiplexing (FDM)

They both STDM and FDM works well for the channels which transmit continuously like telephone, FM radio and TV which continuously transmit signal. Since inactive lines are wasted this makes these venues a good fit for STDM and FDM. which means if the signals are dropped or not received to the receiver than it won't have to send the signals again which is why STDM and FDM are useful in these cases.

In Traditional Computer Communications system, the system have tended to be a lot more 'bursty' with idle periods. Hence if we use the FDM and STDM than the usage patterns of STDM and FDM would waste this idle time. so that is why we tend not to use the FDM and STDM in the general purpose computer network.

7 0
3 years ago
"The system power supply is typically located above the motherboard in a desktop system, the fan on the power supply pulls in co
Solnce55 [7]

Answer: True

Explanation: Power supply is the power source which is gained from the power supply unit. The unit is found on the upper level of the motherboard where the Alternating current is changed to the direct current.

The fan present in the central processing unit (CPU) is for exerting off the heat from operating system and cooling down the system.The cool air in inserted in the system and blows away the heat .Thus,the statement given in the question is true.

4 0
3 years ago
In an experiment, colored letters flash briefly on a computer screen. On each trial, participants are asked to report the letter
motikmotik

Answer:

minimal is the correct answer

Explanation:

In one condition, participants are required simultaneously to monitor the screen for the appearance of a particular digit. Whether participants must watch for a digit is a minimal variable in this experiment.

7 0
2 years ago
Other questions:
  • A user can set the security and privacy settings on what is displayed in the message bar from the ________ within the options me
    8·1 answer
  • What does an SQL injection do
    12·2 answers
  • Answer the question ASAP please
    15·2 answers
  • Jargon is:
    6·2 answers
  • A(n) ____________________ is a hardware device or software utility designed to intercept and prevent unauthorized access to a co
    6·1 answer
  • Question 1
    13·1 answer
  • Which function in spreadsheet software can be used to predict future sales or inventory needs?
    5·2 answers
  • I really need help in this!!!
    11·1 answer
  • Define Technology. Explain the term.​
    13·2 answers
  • 9) Which date is assigned the serial number of 1?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!