Announcement Banner
UNSOLVED

nono2_4fffbb

updated

17 years ago

0

1238

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!

  • ChrisHackett

    2 Intern

    •

    27 Posts

    153

    0

    Posted 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.