Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install threading2

How to install threading2

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install threading2
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.1 Available View build log
0.2.0 Available View build log
0.1.4 Available View build log
Windows (64-bit)
0.2.1 Available View build log
0.2.0 Available View build log
0.1.4 Available View build log
Mac OS X (10.5+)
0.2.1 Available View build log
0.2.0 Available View build log
0.1.4 Available View build log
Linux (32-bit)
0.2.1 Available View build log
0.2.0 Available View build log
0.1.4 Available View build log
Linux (64-bit)
0.2.1 Available View build log
0.2.0 Available View build log
0.1.4 Available View build log
 
Author
License
MIT
Lastest release
version 0.2.1 on Apr 16th, 2011

threading2: like the standard threading module, but awesomer.

This module is designed as a drop-in replacement and extension for the default "threading" module. It has two main objectives:

  • implement primitives using native platform functionality where possible
  • expose more sophisticated functionality where it can be done uniformly

The following extensions are currently implemented:

  • ability to set (advisory) thread priority
  • ability to set (advisory) CPU affinity at thread and process level
  • thread groups for simultaneous management of multiple threads
  • SHLock class for shared/exclusive (also known as read/write) locks

The following API niceties are also included:

  • all blocking methods take a "timeout" argument and return a success code
  • all exposed objects are actual classes and can be safely subclassed

This has currently only been tested on WinXP and Ubuntu Karmic; similar platforms should work OK, and other platforms should fall back to using sensible default behaviour, but I'm not making any guarantees at this stage.

Additional planned extensions include:

  • make stack_size a kwarg when creating a thread
  • native events, semaphores and timed waits on win32
  • native conditions and timed waits on pthreads platforms
  • native SHLock implementations (SRW on Win Vista+, pthread_rwlock)

Subscribe to package updates

Last updated Apr 16th, 2011

Download Stats

Last month:6

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.