Ezelia Posted February 20, 2013 Share Posted February 20, 2013 I just released a worker pool handler I'm using in some of my projects,The source code is in TypeScript and is available here : https://github.com/Ezelia/WorkerPool a live demo is available here : http://ezelia.com/wp-content/uploads/labs/WorkerPool/index.html The aproach I used is to initialize a pool for each worker script.a pool is initialized with the number of workers passed in argument. while you push new tasks the pool delegate the job to the worker who have the smaller tasks list. This is the first public release many bug may be there, also, I didn't find a totaly unobstructive aproach to identifie witch task belong to witch worker, so the task id is sent to the worker and the worker should send back this taskId when the job is finished. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.