Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-24-2004, 02:13 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
Is Shared Memory bound to a thread in Linux ?

By that I mean, if you allocate shared memory in a thread , does that shared memory go away when the thread goes away ?

I have a program which is exhibiting that behavior, and i am surprised, because I believe that shared memory is a process wide resource - so if a thread allocates a shared memory resource, that resource should be available to other threads after the allocating thread has gone away; that is how threads behave on Solaris and AIX.

This is with posix threads by the way, and LInux kernel 2.4 on redhat EL 3.



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
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 10:57 AM
Limit max thread and memory for application in linux kernel 2.4.x manhvt Linux - General 4 07-12-2005 04:41 PM
Problem with shared memory in C under Linux d1s4st3r Programming 4 06-29-2005 04:34 AM
System tuning: tons of memory, 2 P4/w. hyper-threading, NOT I/O bound - what next? mudblood Linux - General 8 09-16-2003 02:03 PM
Can LINUX use shared memory? Shirley Linux - General 1 05-24-2002 03:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 AM.

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