db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Browse by Tags

All Tags » 并发   (RSS)
  • 在Server.openClient后,使用完后,是否需要及时关闭client?

    应用环境:每个用户登录后,都会创建一个Session,在session中有些方法要和db4o打交道,一种方法是在session创建是同时获取Server.openClient,在session关闭时,关闭client;另一种是,在方法调用时Server.openClient,方法调用结束后关闭client,不知道哪种方法更可取一些?
    Posted to Chinese (Forum) by zdw_jl on November 27, 2007
  • 关于在C/S模式下如何保证对全局共享数据的安全可靠并发访问 。

    对db4o很是感兴趣,最近在学习db4o,学习的过程中,想到一个问题:就是在C/S模式下,多个客户端同时访问数据库,如何保证对全局共享数据的可靠并发访问。例如,在db4o中C/S模式下如何实现并发地安全可靠地生成唯一有序序号。--类似关系数据库中的sequence。 看了db4o API 和相关资料,发现了一下两种方法, 1.信号量方式 ExtObjectContainer类中定义了,信号量相关函数。 SetSemaphore,和ReleaseSemaphore。 从帮助文档(SetSemaphore)来看, Possible usecases for semaphores:- prevent other clients from inserting a ...
    Posted to Chinese (Forum) by myaniu on October 27, 2007