https://github.com/mrquincle/event-abbey
An abbey (threadpool) with setjmp/longjmp functionality
https://github.com/mrquincle/event-abbey
Last synced: 4 months ago
JSON representation
An abbey (threadpool) with setjmp/longjmp functionality
- Host: GitHub
- URL: https://github.com/mrquincle/event-abbey
- Owner: mrquincle
- Created: 2013-02-22T22:32:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-23T13:05:21.000Z (over 12 years ago)
- Last Synced: 2025-03-15T20:42:11.675Z (7 months ago)
- Language: C
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Abbey
As a typical example of playing around with code at the first year at Almende I created a threadpool with agents on the level of threads. It is an attempt to misuse setjmp and longjmp to enforce cheap "context switches". Personally I am of the opinion threads are overrated, and we should do much more on the level of processes. Inter-process communication is fast enough for most purposes, and we can use message queues, shared memory, etc. if we need to high-bandwidth communication between processes which you will need for example in an image processing pipeline. And in that case, it even makes sense to do it in the cloud. Just bear with the latency of the uplink and the downlink, but the processing on a server can be blazingly fast.
## Copyrights
The copyrights (2008) belong to:- Author: Anne van Rossum
- Author: Peet van Toren
- Almende B.V., http://www.almende.com and DO bots B.V., http://www.dobots.nl
- Rotterdam, The Netherlands