[algogeeks] os ques about paging

2011-09-24 Thread sivaviknesh s
Consider a virtual memory system in which the virtual page addresses are
mapped onto physical page addresses as follow
Virtual page address.. Physical page address
03
12
2...1
The address of any byte in this system is given by the ordered pair (v,d)
where v = virtual page address d = byte offset in the page
Assuming that the main memory is capable of holding 4 page frames, what is
the physical address of a byte having the virtual address (0,512) given that
the page size is 1024 bytes?
a) 3584
b) 2560
c) 1536
d) 512
e) 1024


-- 
Regards,
$iva

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] os ques about paging

2011-09-24 Thread Vishnu Ganth
3584

On Sun, Sep 25, 2011 at 9:53 AM, sivaviknesh s sivavikne...@gmail.comwrote:




 Consider a virtual memory system in which the virtual page addresses are
 mapped onto physical page addresses as follow
 Virtual page address.. Physical page address
 03
 12
 2...1
 The address of any byte in this system is given by the ordered pair (v,d)
 where v = virtual page address d = byte offset in the page
 Assuming that the main memory is capable of holding 4 page frames, what is
 the physical address of a byte having the virtual address (0,512) given that
 the page size is 1024 bytes?
 a) 3584
 b) 2560
 c) 1536
 d) 512
 e) 1024


 --
 Regards,
 $iva

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
~VISHNU~

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] os ques about paging

2011-09-24 Thread aditya kumar
c) 512

On Sun, Sep 25, 2011 at 9:53 AM, sivaviknesh s sivavikne...@gmail.comwrote:




 Consider a virtual memory system in which the virtual page addresses are
 mapped onto physical page addresses as follow
 Virtual page address.. Physical page address
 03
 12
 2...1
 The address of any byte in this system is given by the ordered pair (v,d)
 where v = virtual page address d = byte offset in the page
 Assuming that the main memory is capable of holding 4 page frames, what is
 the physical address of a byte having the virtual address (0,512) given that
 the page size is 1024 bytes?
 a) 3584
 b) 2560
 c) 1536
 d) 512
 e) 1024


 --
 Regards,
 $iva

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] os ques about paging

2011-09-24 Thread aditya kumar
m sry i dint read the question properly
page no = vitual page % 3 ie 0 % 3 = 3
thrfre 3*1024 is starting addr of physical page
but the byte address will be 3*1024 + 512 = 3584

On Sun, Sep 25, 2011 at 10:12 AM, Vishnu Ganth crazyvishnu...@gmail.comwrote:

 3584


 On Sun, Sep 25, 2011 at 9:53 AM, sivaviknesh s sivavikne...@gmail.comwrote:




 Consider a virtual memory system in which the virtual page addresses are
 mapped onto physical page addresses as follow
 Virtual page address.. Physical page address
 03
 12
 2...1
 The address of any byte in this system is given by the ordered pair (v,d)
 where v = virtual page address d = byte offset in the page
 Assuming that the main memory is capable of holding 4 page frames, what is
 the physical address of a byte having the virtual address (0,512) given that
 the page size is 1024 bytes?
 a) 3584
 b) 2560
 c) 1536
 d) 512
 e) 1024


 --
 Regards,
 $iva

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 ~VISHNU~

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.