/thread_pool

a dynamic thread pool in c

Primary LanguageC

###introduction

The feature of this thread pool is as follows:

  • each thread has one task queue
  • dynamically add or remove threads from the thread pool according to the working states of threads
  • user interface is very simple

###usage

It's very simple to use this thread pool, see thread_pool_test.c, just three steps

  • use thread_pool_create to create a thread pool
  • use thread_pool_init to init the thread pool
  • use task_add to add task into the thread pool

###documentation

Now, there is only chinese version.

###todo

  • support multiple task assignment strategies
  • etc..