Hi zicun,


On Sat, Feb 22, 2014 at 2:24 AM, zicun <congzi...@gmail.com> wrote:

> Hi Patrik,
>
> Thank you very much for your help.
>
> I am not sure if my understanding is right. Dispatcher would firt get an
> Actor and the message from mailbox and then it would get a thread from the
> pool to perform the Actor's task.
>
> Is my understanding correct?
>

Your understanding is correct on a high level, this is roughly what
happens. What you see in the logs (like "default-dispatcher-11") show a
particular thread in that dispatcher.

-Endre


>
> 在 2014年2月19日星期三UTC+8下午4时40分08秒,Patrik Nordwall写道:
>>
>> What you see is expected. default-dispatcher is like a thread pool, and
>> what you see the threads of that pool.
>> /Patrik
>>
>>
>> On Wed, Feb 19, 2014 at 5:21 AM, zicun <cong...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I've search sites a bit for help sloveing my confusion, but haven't
>>> found anything very clear. So I tought I'd post my problems and see if
>>> anyone could shed some light.
>>>
>>> I hava a question about the number of default-dispatcher created by the
>>> actor system. I have read that default-dispatcher would be shared by all of
>>> the actors in th system, so does it mean that only one default-dispatcher
>>> would be created when the actor-system is started?
>>>
>>> I am using the default-dispatcher and I found that it seems that
>>> multiple default-dispathcer are created on my machine. But I do not know
>>> why some many default-dispatchers are created. I also use RoundRobinPool is
>>> my programs, I was wounding if those dispatchers are created by that.
>>>
>>> The following is the thread information got from JVM
>>>
>>>   0x00007f2574012800 JavaThread 
>>> "RunnerSystem-akka.actor.default-dispatcher-16"
>>>> [_thread_in_native, id=4516, stack(0x00007f25c915b000,
>>>> 0x00007f25c925c000)]
>>>>   0x00007f2560001000 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-15"
>>>> [_thread_in_native, id=4515, stack(0x00007f25c925c000,
>>>> 0x00007f25c935d000)]
>>>>   0x00007f2574010800 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-14"
>>>> [_thread_blocked, id=4514, stack(0x00007f25c935d000,
>>>> 0x00007f25c945e000)]
>>>>   0x00007f255c001000 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-13"
>>>> [_thread_in_native, id=4513, stack(0x00007f25c945e000,
>>>> 0x00007f25c955f000)]
>>>>   0x00007f257400e800 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-12"
>>>> [_thread_in_native, id=4512, stack(0x00007f25c955f000,
>>>> 0x00007f25c9660000)]
>>>>   0x00007f2568001000 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-11"
>>>> [_thread_in_native, id=4511, stack(0x00007f25c9660000,
>>>> 0x00007f25c9761000)]
>>>>   0x00007f257400c800 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-10"
>>>> [_thread_blocked, id=4510, stack(0x00007f25c9761000,
>>>> 0x00007f25c9862000)]
>>>>   0x00007f257400a800 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-9"
>>>> [_thread_in_native, id=4509, stack(0x00007f25c9862000,
>>>> 0x00007f25c9963000)]
>>>>   0x00007f2574009000 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-8"
>>>> [_thread_blocked, id=4508, stack(0x00007f25c9963000,
>>>> 0x00007f25c9a64000)]
>>>>   0x00007f2574007800 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-7"
>>>> [_thread_in_native, id=4504, stack(0x00007f25c9a64000,
>>>> 0x00007f25c9b65000)]
>>>>   0x00007f2574004000 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-6"
>>>> [_thread_blocked, id=4503, stack(0x00007f25c9b65000,
>>>> 0x00007f25c9c66000)]
>>>>   0x00007f2580001000 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-5"
>>>> [_thread_in_native, id=4501, stack(0x00007f25c9c66000,
>>>> 0x00007f25c9d67000)]
>>>>   0x00007f261429d800 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-4"
>>>> [_thread_blocked, id=4500, stack(0x00007f25c9d67000,
>>>> 0x00007f25c9e68000)]
>>>>   0x00007f261440b800 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-3"
>>>> [_thread_blocked, id=4499, stack(0x00007f25c9e68000,
>>>> 0x00007f25c9f69000)]
>>>>   0x00007f2614279000 JavaThread 
>>>> "RunnerSystem-akka.actor.default-dispatcher-2"
>>>> [_thread_in_native, id=4498, stack(0x00007f25c9f69000,
>>>> 0x00007f25ca06a000)]
>>>>
>>>
>>>  Thank you very much
>>>
>>> --
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>> >>>>>>>>>> Search the archives: https://groups.google.com/
>>> group/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>>
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>>
>> Patrik Nordwall
>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>>   --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to