|
|
|
|
|
by eva1984
3996 days ago
|
|
Little confused here.So the third solution mentioned in the post is just a worker pool? I think if we just slightly modified the second solution, it will totally work. 1).Initialize a job channel 2).Initialize a set of workers that listen to this channel to pull the jobs indefinitely. In this case just call go StartProcessor() for fixed number of times. What confuses me is that IMO workPoolChannel isn't necessary here. What is the consideration behind to use a channel for workers? |
|