Zthread
From Wikipedia, the free encyclopedia
- The correct title of this article is zthread. The initial letter is shown capitalized due to technical restrictions.
zthread is a cross-platform high-level object-oriented C++ library, which provides an interface to both POSIX Pthread and Windows API threads. It's licenced under MIT License.
ZThread is superior to other threading C++ libraries available: such as Boost threads, POCO. The main advantages compared to other implementations:
- Clean, minimal and complete interfaces
- Rich set of primitives
- Uses modern design techniques, such as policy based design, which makes the library extendable
- Thread objects life cycle management
- Priority mutex, condition, semaphore
- Ability to cancel, interrupt threads in a manner similar to Java (with some limitations on when these events may take place)
- Executor interface decouples Task execution from method of execution. Thread pool is a special executor
- Queue support (Locked, Blocking, Bounded, Monitored)
[edit] External links
- Sourceforge site
- "Thinking in C++ - Volume 2" Concurrency tutorial with examples for zthread.