Fast, re-entrant, optimistic lock implemented in Cython

Category: Python - Miscellaneous

This is a C-level implementation of a fast, re-entrant, optimistic lock for CPython. It is written in Cython. Under normal conditions, it is about 10x faster than threading.RLock because it avoids all locking unless two or more threads try to acquire it at the same time. Under congestion, it is still about 10% faster than RLock due to being implemented in Cython. Date: 10 January, 2012


Concurrency - Lock - Locking

Homepage: http://code.activestate.com/recipes/577336-fast-re-entrant-optimistic-lock-implemented-in-cyt/?in=lang-python

Developer: Stefan Behnel

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Firebird RDBMS offers many ANSI SQL features & runs on Linux, Windows & several Unix platforms.

developer Developer: firebirdsql.org
license License: Mozilla Public License (MPL)
operating systems Operating System: All 32-bit MS Windows (95/98/NT/2000/XP), All BSD Platforms (FreeBSD/NetBSD/OpenBSD/Apple Mac OS X), All POSIX (Linux/BSD/UNIX-like OSes), HP-UX, IBM AIX


A Python 2.

developer Developer: Jan Kaliszewski
license License: Python License
operating systems Operating System: Windows


map() applies a function to a list of data sequentially.

developer Developer: Wai Yip Tung
license License: Freeware
operating systems Operating System: Windows


A decorator that creates a generator factory that creates generators that can have attributes set on them (like a normal python class).

developer Developer: Longpoke
license License: Python License
operating systems Operating System: Windows


A buffer that will partially consume an iterator in the background.

developer Developer: Javier Ruere
license License: Freeware
operating systems Operating System: Windows


A simple lock-queue (FIFO) context manager implemented with Memcached.

developer Developer: Tal Einat
license License: Freeware
operating systems Operating System: Windows


Official site for LAN USB drive disabler tools that records each and every USB activities performed on client machine.

developer Developer: USB Port Blocker
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


This class is used to synchronize worker threads that get their input from a common source that changes over time, and may even be empty on some occasions.

developer Developer: Uri Sternfeld
license License: Freeware
operating systems Operating System: Windows


Iterates through a directory, reading the data from svn info that looks like:

$Id: svn_redater.

developer Developer: Michal Niklas
license License: Freeware
operating systems Operating System: Windows