Re: asynchronous communication between threads

2013-01-07 Thread Dmitry Olshansky
05-Jan-2013 08:15, Charles Hixson пишет: On 01/04/2013 02:56 AM, Dmitry Olshansky wrote: 04-Jan-2013 10:36, Charles Hixson пишет: [snip] Certainly TDPL talks about them sequentially, and implies that there is a tight connection between shared variables and synchronized classes. It is as if a sy

Re: asynchronous communication between threads

2013-01-04 Thread Charles Hixson
On 01/04/2013 02:56 AM, Dmitry Olshansky wrote: 04-Jan-2013 10:36, Charles Hixson пишет: [snip] So cell is in fact a task (more common name for it I think) with a mailbox and you want threads multiplexed across these tasks. The task is running some code/function/callback/whatever that periodical

Re: asynchronous communication between threads

2013-01-04 Thread Dmitry Olshansky
04-Jan-2013 10:36, Charles Hixson пишет: [snip] So cell is in fact a task (more common name for it I think) with a mailbox and you want threads multiplexed across these tasks. The task is running some code/function/callback/whatever that periodically polls a mailbox & puts stuff in other task's m

Re: asynchronous communication between threads

2013-01-03 Thread Charles Hixson
On 01/03/2013 11:34 AM, Dmitry Olshansky wrote: 03-Jan-2013 22:38, Charles Hixson пишет: On 01/03/2013 08:40 AM, Dmitry Olshansky wrote: 02-Jan-2013 03:54, Charles Hixson пишет: If I were to use the below as an asynchronous communication channel, would it avoid deadlocks (presuming that only C

Re: asynchronous communication between threads

2013-01-03 Thread Dmitry Olshansky
03-Jan-2013 22:38, Charles Hixson пишет: On 01/03/2013 08:40 AM, Dmitry Olshansky wrote: 02-Jan-2013 03:54, Charles Hixson пишет: If I were to use the below as an asynchronous communication channel, would it avoid deadlocks (presuming that only Cell called Msg) and that when a thread activated

Re: asynchronous communication between threads

2013-01-03 Thread Charles Hixson
On 01/03/2013 08:40 AM, Dmitry Olshansky wrote: 02-Jan-2013 03:54, Charles Hixson пишет: If I were to use the below as an asynchronous communication channel, would it avoid deadlocks (presuming that only Cell called Msg) and that when a thread activated Cell, the first thing it did was process i

Re: asynchronous communication between threads

2013-01-03 Thread Dmitry Olshansky
02-Jan-2013 03:54, Charles Hixson пишет: If I were to use the below as an asynchronous communication channel, would it avoid deadlocks (presuming that only Cell called Msg) and that when a thread activated Cell, the first thing it did was process it's mailbox? Also, if only around 7 cells were cr