Boost logo

Boost Users :

Subject: Re: [Boost-users] Thread_group semantics
From: Kenneth Adam Miller (kennethadammiller_at_[hidden])
Date: 2014-01-13 17:49:02


Yeah it stores threads, not tasks, but isn't it true that you dispatch jobs
to the current thread group using ioService.post? Maybe my question was
wrong, because I went off using this recipe
http://stackoverflow.com/questions/19500404/how-to-create-a-thread-pool-using-boost-in-c

I should have asked how ioService manages things.

On Mon, Jan 13, 2014 at 4:39 PM, Vicente J. Botet Escriba <
vicente.botet_at_[hidden]> wrote:

> Le 13/01/14 23:21, Kenneth Adam Miller a écrit :
>
> So, suppose that I give so many tasks to a thread_group that it becomes
> more than what the thread pool can handle. I would want the thread pool to
> just take longer, but still complete them all. Also, I want the tasks
> processed First Come First Serve. What happens when too many tasks are
> given to it? Do they get queued up?
>
> thread_group stores threads not tasks. In addition it is deprecated. I'm
> working on a basic thread pool in the develop branch. Boost.1.55 contains a
> first implementation but not yet documented in
> https://github.com/boostorg/thread/blob/master/include/boost/thread/thread_pool.hpp,
> but the interface will surely change when released
> https://github.com/boostorg/thread/blob/develop/include/boost/thread/executors/basic_thread_pool.hpp
> .
>
> HTH,
> Vicente
>
>
> On Mon, Jan 13, 2014 at 1:01 AM, Gavin Lambert <gavinl_at_[hidden]>wrote:
>
>> On 9/01/2014 23:40, Quoth Kenneth Adam Miller:
>>
>> When a thread_group is assigned a task using post, does that task get
>>> executed sequentially? Is there a list, so that, when too many posts are
>>> added to it, it keeps track of them?
>>>
>>
>> Can you rephrase the question? boost::thread_group does not have a post
>> method.
>>
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
>
>
> _______________________________________________
> Boost-users mailing listBoost-users_at_[hidden]http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net