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 6 1644
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
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
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
"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.
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: DANIEL BEAULIEU J |
last post by:
Basically i am a student taking an operating systems course which
is c++ intensive. Familiar with Java, and so not so familiar with memory
management. Looking for suggestions of exercises or web...
|
by: Bibby |
last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:
...
|
by: evolnet.regular |
last post by:
I've been utilising C for lots of small and a few medium-sized personal
projects over the course of the past decade, and I've realised lately
just how little progress it's made since then. I've...
|
by: trialproduct2004 |
last post by:
Hi all,
I am having slight confusion regarding memory management in .net.
Say suppose i have two application one is in C# and other is in
MFC(VC++).
Both of this application are using lots...
|
by: Joshua Rulz |
last post by:
Hi, i want to learn to program im quite skilled with computers and want
to learn c++. is there anyone who can teach me or tell me a good
website to learn it?
all replies will be appreciated.
|
by: stylecomputers |
last post by:
Hey guys,
I am absolutely new to Linux programming, with no w######s programming
experience except a small amount of C++ console apps.
Reasonably new to Linux, BSD etc, got good sound networking...
|
by: smnoff |
last post by:
I have searched the internet for malloc and dynamic malloc; however, I still
don't know or readily see what is general way to allocate memory to char *
variable that I want to assign the substring...
|
by: Jim Land |
last post by:
Jack Slocum claims here
http://www.jackslocum.com/yui/2006/10/02/3-easy-steps-to-avoid-javascript-
memory-leaks/
that "almost every site you visit that uses JavaScript is leaking memory".
...
|
by: kumarmdb2 |
last post by:
Hi guys,
For last few days we are getting out of private memory error. We have a
development environment. We tried to figure out the problem but we
believe that it might be related to the OS...
|
by: Richard Harter |
last post by:
On Tue, 04 Nov 2008 16:43:49 -0500, Eric Sosman
<Eric.Sosman@sun.comwrote:
I may address the rest of your comments later (for which, thank
you very much) but this seems to be a serious point...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |