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]
3 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]3 years ago
6 0

Answer:

Explanation:

start with what you know

You might be interested in
You are given a 11-bit floating point representation with 1-sign bit, 3 bits for the exponent, and 7-bits for the mantissa. Expr
qwelly [4]

Answer:

Sign Bit = 0 (for Positive number)

Exponent = 111 (Three Bit) calculated in step 5

Mantissa = 1111 11 0 (7 bits for mantissa)

the answer is

<em>sign bit -   Exponent -     Mantissa</em>

The representation of 15.75 in binary in 11 bits is given as

<em>0 - 111 - 1111 11 0</em>

<em></em>

Explanation:

Given data  

15.75 in decimal

calculate it in binary.

1.          

15/2 = 7 (Quotient)   and 1 (remainder)

7/2 = 3 (Quotient)     and 1 (remainder)

3/2 = 1 (Quotient)     and 1 (remainder)

by arranging them in order

<em>15 in decimal = 1111 in binary</em>

<em />

<em>2.</em>

<em />

<em>Now convert 0.75 by dividing 2 , </em>

multiplying = integer + fractional part;

1) 0.75 × 2 =  1.5 = <em><u>1</u></em> + 0.5;

2) 0.5 × 2 = 1= <u><em>1 </em></u>+ 0;

<em>so</em>

<em>0.75 in decimal = 0.11 in binary</em>

<em />

<em>3. </em>Because it is the 15.75 is positive number so we add 0 in extreme right as

<em> 15.75 =  0  1111 . 11</em>

<em>4.  Now making it normalize as by moving point</em>

<em />

0.1111 11 x 2^4

so exponent is 4.

<em />

<em>5. As exponent is 3 bits </em>

exponent + 2^ (No of bits-1) -1

4+ 2 ^ (3-1) - 1 =  4+4 -1 = 8-1 = 7

Now divide 7 by 2

<em>so </em>

7/2 = 3 (Quotient)     and 1 (remainder)

3/2 = 1 (Quotient)     and 1 (remainder)

<em>so exponent in bits is 111</em>

<em>6. Now calculate mantissa</em>

Just remove the point from 0.1111 11 as 1111 11

Now add rest of the bits 0 at right side

mantissa = 1111 11 0

<em />

<em />

<em></em>

8 0
3 years ago
You are trying to access the Wi-Fi network at a coffee shop. What protocol will this type of wireless networking most likely use
Anna71 [15]

The wireless network is called WAP protocol

8 0
3 years ago
Write a basic notation for
Licemer1 [7]

Answer:

a = (b + c)/(2 * c)

z = x/(y + c)

c = (9 * c + 32)/5

Explanation:

Required

The expression in basic

To do this, we use () to group items, / as divide and * to combine factors

So, we have:

(a)\ a = \frac{(b + d)}{2c}

In basic, it is:

a = (b + c)/(2 * c)

(b)\ z = \frac{x}{y + c}

In basic, it is:

z = x/(y + c)

(c)\ c = \frac{9c + 32}{5}

c = (9 * c + 32)/5

4 0
3 years ago
20 points for ez question lol
slega [8]
I think it might be the third on not certain
5 0
3 years ago
Read 2 more answers
Plz I’ll mark Brainliest
artcher [175]

Answer:

It's B cuz if somehow the power went off your work won't be saved. So it's best to save your work frequently.

6 0
3 years ago
Other questions:
  • Which topology enables only one person, at one time, to send data to others on the network?
    6·1 answer
  • When you see a yield sign what do you do?
    8·1 answer
  • A stop sign is an example of?
    11·2 answers
  • You are the project manger for Xylophone Phonics. It produces children's software programs that teach basic reading and math ski
    11·1 answer
  • Which statement accurately compares the restart at 1 and continue numbering featured of word
    15·2 answers
  • Which note taking strategy has you divide a page into 3 sections for your notes, key points, and summary?
    11·1 answer
  • Complete the code to convert a float to a string. <br> answer=5.3 <br> strAnswer=__ (answer)
    12·2 answers
  • The price of an item you want to buy is given in dollars and cents. You pay for it in cash by giving the clerk d dollars and c c
    6·1 answer
  • In python,
    15·1 answer
  • Can anyone tell me about Microsoft some important features for partical
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!