Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread semaphores functionality
Tue, Jul 24 2007 10:04 PMPermanent Link

"Huhtaman"
hello all:

  i have a question on semaphores - are semaphores automatically freed up
when an application terminates ? what if the app is terminated via power
loss ???

  I want to use semaphores to keep track of who is in my application in a
non-client server dbisam environment.

  My idea is to grab the first available semaphore - put it in a table
along with the ip address(s) of the computer and the computer name. the
table is needed to store the user computer information.

thanks

Neil

Wed, Jul 25 2007 3:18 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Neil,

<< i have a question on semaphores - are semaphores automatically freed up
when an application terminates ? >>

They aren't in 1.x or 2.x, and possibly 3.x also, but they are in 4.x.

<< what if the app is terminated via power loss ??? >>

No, in such a case they are handled just like any other locks - it is up to
the file server OS to free them because the process is now gone.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image