Unsolved

This post is more than 5 years old

1211

December 7th, 2009 21:00

what happend if 2 processes try to create the same object at the "same" time?

Can Atmos guarantee only one process succeed? I have many processes try to update the same file all the time, so I need to simulate a "lock". If Atmos can make sure only one process get the successful return while creating the same object, I can use this feature to simulate a lock.

Please help. Thanks!

27 Posts

December 11th, 2009 06:00

As an Atmos consumer I funnel things that need some type of locking and or transactional integrity through a server process which single threads requests.

In any case, if creating the object in two places is a problem then updating it from two places would be a problem as well, so I let individual processes/threads create new objects and ask the central process to update the catalog of objects storing the object ID's.

No Events found!

Top