Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dincho/process-thread-pools
https://github.com/dincho/process-thread-pools
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dincho/process-thread-pools
- Owner: dincho
- Created: 2013-12-14T20:22:30.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-05T12:19:21.000Z (almost 11 years ago)
- Last Synced: 2023-04-10T04:56:59.255Z (over 1 year ago)
- Language: C
- Size: 180 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Distributed programming - coursework
====================================A process (coordinator) creates 5 processes (pool).
The workers wait to be wake from the coordinator, do some work and wait again.
The coordinator send a marker (integer) to the first process and wake it up.
The worker adds one to the marker and send it to next process while notify the coordinator.
The coordinator wake up the next worker and so on.
The marker should pass each process 10 times, after that the coordinator prints it.
For synchronization one must use signaling, for communication one must use pipes.Alternative solution with threads should be provided.