Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C (http://www.programmingforums.org/forum60.html)
-   -   Virtual Memory question (http://www.programmingforums.org/showthread.php?t=9327)

metsfan Apr 11th, 2006 7:37 AM

Virtual Memory question
 
I could not find a forum for Unix-based operations, but since the class I am in is taught in C, ill post it here.

I am currently trying to figure out how to convert Virtual Memory Addresses into Physical Memory Addresses. I understand how it works. It is the the concatonation of the Physical Page Number, and Virtual Page Offset as far as I could gather

However, I am currently unable to figure out how I am supposed to come up with the Physical Page Number. Does anyone know how this is calculated?

Assume you are given only a Virtual Address

Also, what are the parameters for determining if there is a TLB hit, or a Page fault?

metsfan Apr 11th, 2006 7:57 AM

figure it out, let hte thread die

Ooble Apr 11th, 2006 6:47 PM

Can you post the answer for anyone who might need it?


All times are GMT -5. The time now is 4:36 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC