GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Programming
Go To First  |  Previous Question  |  Next Question 
 Unix Programming  |  Question 9 of 43    Print  
How would you remove a semaphore / shared memory whose owner processes have died?

  
Total Answers and Comments: 3 Last Update: January 17, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 28, 2005 19:03:08   #1  
rajndra        

RE: How would you remove a semaphore / shared memory whose owner processes have died?
ipcrm -sem id ; for semaphores
ipcrm -shm id ; for shared mem

 
Is this answer useful? Yes | No
May 17, 2007 09:24:28   #2  
raj        

RE: How would you remove a semaphore / shared memory w...

shared memory can be cleaned by

shmclean
ipcrm after finding the ids using ipcs...





 
Is this answer useful? Yes | No
January 17, 2008 07:08:58   #3  
shobhitcs Member Since: January 2008   Contribution: 9    

RE: How would you remove a semaphore / shared memory whose owner processes have died?
u can use ipcrm .....and use kill -9 <process id > to clean the process...
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape