Sponsored Links


Results 1 to 9 of 9

Thread: CS604-Assignment 3

  1. #1
    Junior Member Minnow's Avatar
    Join Date
    Jun 2010
    Posts
    7

    CS604-Assignment 5

    Sponsored Links1


    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]

    Sponsored Links
    Last edited by Minnow; 07-21-2010 at 08:19 PM.

  2. #2
    Senior Member viki's Avatar
    Join Date
    May 2010
    Posts
    2,132
    please mention the duedate of it
    :o:o--------------------------------------------------------------------------------------:o:o
    [B]The more knowledge you have, the greater will be your fear of Allah.[/B]

    Please Join My [B]Group Vuhelp[/B][B], Birthday Wishing, Daily Hadees[/B] [CODE][B]http://vuhelp.net/groups/vuhelp.html[/B]
    [B]http://vuhelp.net/groups/birthday-wishing.html[/B]
    [B]http://vuhelp.net/groups/daily-hadees.html[/B][/CODE]
    [CENTER][B][COLOR="Red"][SIZE="4"]Email: [email]viki@vuhelp.net[/email][/SIZE][/COLOR][/B][/CENTER]

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    1
    mention the duedate of assignment is 21 july(today)

  4. #4
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239
    ok thanks. we are trying our best to provide you solution

  5. #5
    Junior Member
    Join Date
    Jul 2010
    Posts
    6
    IDEA SOLUTION

    (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

  6. #6
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239
    That's good you provide the solution for just idea.

  7. #7
    Senior Member viki's Avatar
    Join Date
    May 2010
    Posts
    2,132
    hmmmm that is really smart of u ......thankx
    :o:o--------------------------------------------------------------------------------------:o:o
    [B]The more knowledge you have, the greater will be your fear of Allah.[/B]

    Please Join My [B]Group Vuhelp[/B][B], Birthday Wishing, Daily Hadees[/B] [CODE][B]http://vuhelp.net/groups/vuhelp.html[/B]
    [B]http://vuhelp.net/groups/birthday-wishing.html[/B]
    [B]http://vuhelp.net/groups/daily-hadees.html[/B][/CODE]
    [CENTER][B][COLOR="Red"][SIZE="4"]Email: [email]viki@vuhelp.net[/email][/SIZE][/COLOR][/B][/CENTER]

  8. #8
    Junior Member Minnow's Avatar
    Join Date
    Jun 2010
    Posts
    7
    Thanks alot

  9. #9
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239
    you are welcome dear. Just post your assignment on very first day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 10-31-2012, 08:54 PM
  2. Replies: 2
    Last Post: 01-29-2011, 10:24 PM
  3. Replies: 0
    Last Post: 11-26-2010, 11:32 PM
  4. cs604 operating system assignment
    By Virgo27 in forum Assignments & Solutions
    Replies: 3
    Last Post: 07-21-2010, 09:47 PM
  5. CS604 Assignment Helping Material July 2010
    By viki in forum Assignments & Solutions
    Replies: 0
    Last Post: 07-09-2010, 12:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft