LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-24-2004, 01:13 PM   #1
colmmagoo
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.

Thanks,
Colm.
 
  


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
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
Limit max thread and memory for application in linux kernel 2.4.x manhvt Linux - General 4 07-12-2005 03:41 PM
Problem with shared memory in C under Linux d1s4st3r Programming 4 06-29-2005 03: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 01:03 PM
Can LINUX use shared memory? Shirley Linux - General 1 05-24-2002 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration