?

Log in

No account? Create an account

Previous Entry | Next Entry


If I have a process that creates multiple threads, and those threads create semaphores, if I delete the parent process without deleting the objects created in the child threads, are all of those objects deleted, or are they orphaned?

I know it's OS- dependent, but just in general?

Tags:

Comments

( 2 comments — Leave a comment )
(Anonymous)
Sep. 30th, 2005 09:21 pm (UTC)
Free the semaphores
In general you are in trouble. Semaphores are typically global OS objects and must be explictly released or freed...

As you say - OS dependant. So I suppose if your OS has process-level semaphores rather than system-level ones then you might be OK not explictly freeing them.

Rocky
magicmarmot
Sep. 30th, 2005 09:34 pm (UTC)
Re: Free the semaphores
Happily, all objects (other than regions) are deleted when the parent is deleted. Happy happy!
( 2 comments — Leave a comment )

Latest Month

April 2012
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930     

Tags

Page Summary

Powered by LiveJournal.com
Designed by Tiffany Chow