gpt4 book ai didi

nosql - 京都内阁和多个进程?

转载 作者:行者123 更新时间:2023-12-04 19:14:23 25 4
gpt4 key购买 nike

我已经阅读了文档,但几乎没有发现访问单个 kyotocabinet 数据库的多个进程(读取器和写入器)的信息。看起来您可以创建多个读取器,但除非您指定 ONOLOCK,否则多个写入器将阻止尝试打开数据库。任何人都可以阐明这是如何工作的,或者是否可能?我知道京都大亨是一种选择,但我对京都内阁特别好奇。

最佳答案

在 tokyocabinet 联机帮助页上找到了这个:

Tokyo Cabinet provides two modes to connect to a database: "reader" and "writer". A reader can perform retrieving but neither storing nor deleting. A writer can perform all access methods. Exclusion control between processes is performed when connecting to a database by file locking. While a writer is connected to a database, neither readers nor writers can be connected. While a reader is connected to a database, other readers can be connect, but writers can not. According to this mechanism, data consistency is guaranteed with simultaneous connections in multitasking environment.



然后猜测,这也适用于京都。

关于nosql - 京都内阁和多个进程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11550236/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com