By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,851 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,851 IT Pros & Developers. It's quick & easy.

Programming for Memory Management

P: n/a
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

Jun 26 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
In article <11**********************@b68g2000cwa.googlegroups .com>,
Jay <ja*****@gmail.com> wrote:
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.
--
Prototypes are supertypes of their clones. -- maplesoft
Jun 26 '06 #2

P: n/a
Jay
Hi Walter,

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

- Jay
Walter Roberson wrote:
In article <11**********************@b68g2000cwa.googlegroups .com>,
Jay <ja*****@gmail.com> wrote:
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.
--
Prototypes are supertypes of their clones. -- maplesoft


Jun 26 '06 #3

P: n/a
On 26 Jun 2006 12:17:03 -0700, "Jay" <ja*****@gmail.com> wrote:
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."
- Jay
Walter Roberson wrote:
In article <11**********************@b68g2000cwa.googlegroups .com>,
Jay <ja*****@gmail.com> wrote:
> 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.
--
Prototypes are supertypes of their clones. -- maplesoft


--
Al Balmer
Sun City, AZ
Jun 26 '06 #4

P: n/a
"Jay" <ja*****@gmail.com> writes:
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.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jun 26 '06 #5

P: n/a
Jay said the following, on 06/26/06 15:17:
Walter Roberson wrote:
In article <11**********************@b68g2000cwa.googlegroups .com>,
Jay <ja*****@gmail.com> wrote:
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.

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
--
Rich Gibbs
ri*****@gmail.com
"You can observe a lot by watching." -- Yogi Berra

Jun 26 '06 #6

P: n/a
Jay wrote:
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
Jun 26 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.