Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS604-Assignment 3
#1
Calculate the following

1. Calculate the swap out + swap in time of a process which has 2MB of size having transfer rate of 10MB/sec and whose average latency is 20ms. [5 marks]

2. The logical address space of the process is 16 pages and the size of each page is 2 Kb. There are 128 frames in the main memory. The size of a frame is equivalent to the size of a page. With the given information, answer the following questions: [2.5 * 4 = 10 marks]

• Calculate the size of Logical Address?
• Find the size of the Logical Memory?
• Calculate the size of Physical Address?
• Find the size of the Physical Memory?

3. Consider a 64-bit linear address having 16k page size. Calculate maximum number of pages in a process address space, number of bits needed for d and for p. [5 marks]
Reply
#2
please mention the duedate of it
Reply
#3
mention the duedate of assignment is 21 july(today)
Reply
#4
ok thanks. we are trying our best to provide you solution
Reply
#5
[SIZE="5"]
IDEA SOLUTION
[/SIZE]

(1) Calculate the swap out + swap in time of a process which has 2MB of size having transfer rate of 10MB/sec and whose average latency is 20ms.

(Answer)
swap out time = process size / transfer rate
net swap out time= latency time swap out time
and then
swap out + swap in = net swap out time + net swap out time
by using this method my answer is
swap out + swap in = 440 ms


(2) The logical address space of the process is 16 pages and the size of each page is 2 Kb. There are 128 frames in the main memory. The size of a frame is equivalent to the size of a page. With the given information, answer the following questions:

• Calculate the size of Logical Address?
• Find the size of the Logical Memory?
• Calculate the size of Physical Address?
• Find the size of the Physical Memory?

(Answer)
Size of logical address= |p| + |d|=15 bits
Size of logical memory= No. of pages * page size= 64
Size of physical address= |f|+ |d|=18 bits
Size of physical memory= No. of frames * size of each frame= 256


(3) Consider a 64-bit linear address having 16k page size. Calculate maximum number of pages in a process address space, number of bits needed for d and for p.

(Answer)
Logical address = 64-bit
Page size = 16 k

Maximum pages in a process address space = 2^16 / 16k = 4
No. of bits needed for d =|d| = log 2 4k = 12 bits
No. of bits needed for p = |p|= 16 – 12 = 3 bits
Reply
#6
That's good you provide the solution for just idea.
Reply
#7
hmmmm that is really smart of u ......thankx
Reply
#8
Thanks alot
Reply
#9
you are welcome dear. Just post your assignment on very first day.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need ACC501 - Business Finance Assignment No 2 Solution. Umar Abbas 2 4,251 02-07-2014, 08:23 PM
Last Post: Umar Abbas
  sta301 assignment 4 27 jun bc110200090 6 3,580 01-26-2013, 02:05 AM
Last Post: Vuhelper
  cs506 2nd assignment millee 0 2,661 12-04-2012, 11:30 PM
Last Post: millee
  cs506 2nd Assignment Neelam Ahmad 5 3,130 12-04-2012, 11:24 PM
Last Post: Vuhelper
  CS 504 Assignment 2 need help ommmi 24 11,422 11-27-2012, 04:59 AM
Last Post: Xpert
  Mcs cs402 1st assignment chahat4all 2 3,767 11-01-2012, 11:11 PM
Last Post: chahat4all
  eng201 assignment 4 due date 4/7/2012 bc110200090 6 2,615 07-03-2012, 03:51 PM
Last Post: bc110200090
  need CS304 4th assignment shazma 0 2,056 06-26-2012, 12:48 PM
Last Post: shazma
  sta301 assignment 4 solution vudecent 0 2,399 06-25-2012, 01:51 AM
Last Post: vudecent
  Required Soluction for 3rd Assignment of CS101 bc120200426 1 2,138 06-14-2012, 04:13 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)