Merge pull request #89 from gonzus/gonzus/clean-up-design

Cleaned up design doc
This commit is contained in:
Manos 2020-07-20 17:24:15 +01:00 committed by GitHub
commit cdcacc8b50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,18 +12,18 @@
_______________________________________________________
_______________________________________________________
/ \
| JOB QUEUE | job1 | job2 | job3 | job4 | .. |
| JOB QUEUE | job1 | job2 | job3 | job4 | .. |
| |
| threadpool | thread1 | thread2 | .. |
\_______________________________________________________/
Description: Jobs are added to the job queue. Once a thread in the pool
is idle, it is assigned with the first job from the queue(and
erased from the queue). It's each thread's job to read from
the queue serially(using lock) and executing each job
is idle, it is assigned the first job from the queue (and that job is
erased from the queue). It is each thread's job to read from
the queue serially (using lock) and executing each job
until the queue is empty.