Skip to main content

Author: LanHao

Project description

spacelock

目标

能够抢占空间中的某片区域,实现给该区域加锁的逻辑,并且在锁被删除时,及时通知正在等待的锁。

背景

在设想对全局空间分块,进行智能体的动作时,希望智能体能够对某块空间进行抢占,即:一旦抢占成功,只有该智能体在该局部空间有行动权。

试图通过这样的功能,对即将准备尝试的,多智能体、分布式算法的构思有帮助。

原本希望通过数据库的常规索引+空间索引来完成。但是在反馈通知其他等待某个已经抢占的锁的释放的环节,未找到合适的方式,确保锁释放时,正确的通知到正在等待该锁释放的链接。

所以开始属于个人的尝试。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for spacelock, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size spacelock-0.0.2-py2.py3-none-any.whl (6.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size spacelock-0.0.2.tar.gz (8.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page