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.

Source Distribution

spacelock-0.0.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

spacelock-0.0.2-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file spacelock-0.0.2.tar.gz.

File metadata

  • Download URL: spacelock-0.0.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for spacelock-0.0.2.tar.gz
Algorithm Hash digest
SHA256 96b4abd351fe24134a6206638ab572fd93fad0525b077c31aa49e3b01e288af0
MD5 fd4b3b51024624a03905923ee5ae1c50
BLAKE2b-256 a9e61b80d9f3e323162864a9b0e7339b18fb0d86fd7e98c312c83e4f30255738

See more details on using hashes here.

File details

Details for the file spacelock-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: spacelock-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for spacelock-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 45d4f2a30ee2f592c1df25d080a41f0d8af3b04dd2ef45511372a7ab0db9651d
MD5 b958bc6d9dece15bcdcde122b018ccd1
BLAKE2b-256 2879088dd4d74083441a27029ca16628f2a456da30c8ff139a0c4d8992caba24

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page