LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2007, 02:48 PM   #1
gautam143
LQ Newbie
 
Registered: Sep 2004
Posts: 15

Rep: Reputation: 0
Question Ipc


Hi
If u create a shared memory using c in UNIX.
Where the memory will be created...
RAM or Hard disk...
In wikipedia :One process will create an area in RAM which other processes can access.
can u justify the above answer...
then what about swap portion and virtual memory.
If any good document u can refer me….
 
Old 09-25-2007, 04:50 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
For the most part, Memory = RAM.

Swap storage is used only by the OS as temporary storage for memory segments which it deems to be dormant in some sense. This is part of the virtual memory system, and is not accessible by userland applications.

Normally, memory owned by one process is protected by the OS from access by other processes. Using a couple of different APIs, the OS can create, and otherwise manage, segments of memory which it will allow multiple processes to locate and access. Shared memory is one component of the general category of Interprocess Communication, IPC. A Google search for Interprocess Communication should lead to numerous educational documents.

--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ipc programming olivarbudia Programming 0 05-04-2005 09:44 AM
IPC program sis650 Programming 1 04-27-2005 06:09 PM
IPC Process! UltraSoul Solaris / OpenSolaris 1 02-04-2005 12:44 PM
about IPC iclinux Programming 1 01-14-2005 11:16 PM
Semaphores and IPC gsu_790 Programming 2 09-29-2004 09:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration