Shared memory in HPUX


 
Thread Tools Search this Thread
Operating Systems HP-UX Shared memory in HPUX
# 1  
Old 05-30-2005
Shared memory in HPUX

HI all,
Any one have the sample C code which uses the Sharedmemory concept
in HPUX, AS400, OS390 .please send the links.

Thanks in Advance
Chinna
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Shared library with acces to shared memory.

Hello. I am new to this forum and I would like to ask for advice about low level POSIX programming. I have to implement a POSIX compliant C shared library. A file will have some variables and the shared library will have some functions which need those variables. There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies

2. UNIX for Dummies Questions & Answers

ulimit (memory) HPUX

Hi all, I am setting the memory allocation to 3GB for each user on HPUX 11.23. I have added ulimit -m 3145728 into the profiles for root and user "X". When I do ulimit -a for each user I get conflicting values: user root: memory(kbytes) 3145728 user "X": memory(kbytes) ... (1 Reply)
Discussion started by: macgre_r
1 Replies

3. Programming

Shared memory for shared library

I am writing a shared library in Linux (but compatible with other UNIXes) and I want to allow multiple instances to share a piece of memory -- 1 byte is enough. What's the "best" way to do this? I want to optimize for speed and portability. Obviously, I'll have to worry about mutual exclusion. (0 Replies)
Discussion started by: otheus
0 Replies

4. HP-UX

need help in working with shared libraries on hpux

hi, i am having problem loading multiple shared libraries. if i load, make call to exposed method and then unload them, everything workds fine, but i have to keep the loaded images in memory, i am uploading the prog. as loader.zip, it contains loader - loader.c which loads c++ shared... (2 Replies)
Discussion started by: p.premkumarr
2 Replies

5. HP-UX

How can I get HPUX memory?

Hello! I need to know the HPUX RAM memory (used & free). When I use the "top" command, I get three values: <<Memory: 284372K (135276K) real, 236604K (140740K) virtual, 600220K free>> What does it mean the number in brackets? And... Is it RAM Memory? Thx in advance! (10 Replies)
Discussion started by: faca317
10 Replies

6. Programming

Shared memory in shared library

I need to create a shared library to access an in memory DB. The DB is not huge, but big enough to make it cumbersome to carry around in every single process using the shared library. Luckily, it is pretty static information, so I don't need to worry much about synchronizing the data between... (12 Replies)
Discussion started by: DreamWarrior
12 Replies

7. Programming

memory sharing - not shared memory -

hi, this is the problem: i want to swap a linked list between 4 processes (unrelated), is there any way i can do that just by sending a pointer to a structure? //example typedef struct node { int x; char c; struct node *next; } node; or i should send the items ( x,c ) by... (9 Replies)
Discussion started by: elzalem
9 Replies

8. Linux

all about shared memory

Hi all :confused: , I am new to unix.I have been asked to implement shared memory in user's mode.What does this mean?What is the difference it makes in kernel mode and in users mode?What are the advantages of this impemenation(user's mode)? And also i would like to know why exactly shared... (0 Replies)
Discussion started by: vijaya2006
0 Replies

9. UNIX for Advanced & Expert Users

Shared memory shortage but lots of unused memory

I am running HP-UX B.11.11. I'm increasing a parameter for a database engine so that it uses more memory to buffer the disk drive (to speed up performance). I have over 5GB of memory not being used. But when I try to start the DB with the increased buffer parameter I get told. "Not... (1 Reply)
Discussion started by: cjcamaro
1 Replies

10. HP-UX

how to access a windows shared drive from HPUX?

Dear Unix Gurus, I am very very new to UNIX. Apreciate your advice/guidence on the following. I have a HPUX machine and i want to copy some files from this machines to a windows shared drive. I am not sure how to go about it. To my little knowledge i think it is not straight... (5 Replies)
Discussion started by: nicky88
5 Replies
Login or Register to Ask a Question
GETPAGESIZE(2)						     Linux Programmer's Manual						    GETPAGESIZE(2)

NAME
getpagesize - get memory page size SYNOPSIS
#include <unistd.h> int getpagesize(void); DESCRIPTION
The function getpagesize() returns the number of bytes in a page, where a "page" is the thing used where it says in the description of mmap(2) that files are mapped in page-sized units. The size of the kind of pages that mmap uses, is found using #include <unistd.h> long sz = sysconf(_SC_PAGESIZE); (where some systems also allow the synonym _SC_PAGE_SIZE for _SC_PAGESIZE), or #include <unistd.h> int sz = getpagesize(); HISTORY
This call first appeared in 4.2BSD. CONFORMING TO
SVr4, 4.4BSD, SUSv2. In SUSv2 the getpagesize() call is labeled "legacy", and in POSIX 1003.1-2001 it has been dropped. HPUX does not have this call. NOTES
Whether getpagesize() is present as a Linux system call depends on the architecture. If it is, it returns the kernel symbol PAGE_SIZE, which is architecture and machine model dependent. Generally, one uses binaries that are architecture but not machine model dependent, in order to have a single binary distribution per architecture. This means that a user program should not find PAGE_SIZE at compile time from a header file, but use an actual system call, at least for those architectures (like sun4) where this dependency exists. Here libc4, libc5, glibc 2.0 fail because their getpagesize() returns a statically derived value, and does not use a system call. Things are OK in glibc 2.1. SEE ALSO
mmap(2), sysconf(3) Linux 2.5.0 2001-12-21 GETPAGESIZE(2)