Programming for Memory Management

J

Jay

I was wondering if there is any system call so that a process can
access systems page table or swap pages from main memory by specifying
the page number. I am trying to implement various page replacement
algorithms like LRU, OPT, FIFO etc. Please let me know if you think of
any other way for implementing the same other than accessing actual
page table.

-Jay
 
W

Walter Roberson

I was wondering if there is any system call so that a process can
access systems page table or swap pages from main memory by specifying
the page number.

Nearly everything having to do with calls to system() is implementation
defined; and everything having to do with "system calls" is outside
of the C standard.
I am trying to implement various page replacement
algorithms like LRU, OPT, FIFO etc. Please let me know if you think of
any other way for implementing the same other than accessing actual
page table.

C itself has no concept of memory pages, so you should ask these
questions in a newsgroup that discusses your particular operating system.
 
A

Al Balmer

Hi Walter,

I am programming on Solaris platfrom. Any help will be appreciated.
You already got the best help - read Walter's reply again - he said
"you should ask these questions in a newsgroup that discusses your
particular operating system."
 
K

Keith Thompson

Jay said:
I was wondering if there is any system call so that a process can
access systems page table or swap pages from main memory by specifying
the page number.

Not in standard C. Try a newsgroup that deals with your operating system.
 
R

Rich Gibbs

Jay said the following, on 06/26/06 15:17:
> Hi Walter,
>
> I am programming on Solaris platfrom. Any help will be appreciated.
>
> - Jay
>
>

Please don't top post. I've attempted to fix your reply.

As Walter said, what you are looking for is not part of the standard C
language, which we discuss here. System calls are entirely dependent on
the platform you are using. Since you've said that is Solaris, you
might try one of the following groups:

comp.unix.programmer
comp.unix.solaris
 
D

Default User

Jay said:
Hi Walter,

I am programming on Solaris platfrom. Any help will be appreciated.

Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See most of the other posts.



Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,184
Messages
2,570,976
Members
47,536
Latest member
MistyLough

Latest Threads

Top