For Programmers: Free Programming Magazines  


Home > Archive > C > June 2006 > Programming for Memory Management









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Programming for Memory Management
Jay

2006-06-26, 6:56 pm

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

Walter Roberson

2006-06-26, 6:56 pm

In article <1151346445.976730.160070@b68g2000cwa.googlegroups.com>,
Jay <jayesch@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
Jay

2006-06-26, 6:56 pm

Hi Walter,

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

- Jay


Walter Roberson wrote:
> In article <1151346445.976730.160070@b68g2000cwa.googlegroups.com>,
> Jay <jayesch@gmail.com> wrote:
>
> 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.
>
>
> 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

2006-06-26, 6:57 pm

On 26 Jun 2006 12:17:03 -0700, "Jay" <jayesch@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."
[color=darkred]
>- Jay
>
>
>Walter Roberson wrote:

--
Al Balmer
Sun City, AZ
Keith Thompson

2006-06-26, 6:57 pm

"Jay" <jayesch@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) kst-u@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.
Rich Gibbs

2006-06-26, 6:57 pm

Jay said the following, on 06/26/06 15:17:

> Walter Roberson wrote:
> 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
richg74@gmail.com
"You can observe a lot by watching." -- Yogi Berra

Default User

2006-06-26, 6:57 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com