首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 简单的任务调度程序-容易地执行任务的基础上的工人原则

简单的任务调度程序-容易地执行任务的基础上的工人原则

资 源 简 介

Overview This project allows you to execute tasks concurrently based on the master/worker technique. Tasks are regrouped in task queues and based on a dispatch strategy, workers are automatically assigned to these task queues. This project comes with some dispatch strategies, but you can easily write your own. It also allows you to : * place barriers on task queues, * get progression status, * change the number of workers dynamically, * create task queues dynamically, * declare the minimum/maximum/optimal number of workers for each task queues, and change them at runtime, * share values between tasks of a same tasks queue, * have workers with a context. A context is a set of parameter-value unique to a given worker. Each task declare a context id, if a context id change from one task to an other, the context is automatically charged. Example 1 - One task feed ``` //At the start of the program, create a workers pool WorkersPool pool = new Work

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP