airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Supun Kamburugamuva <supu...@gmail.com>
Subject Re: Orchestrator Multi-Threaded vs Single Threaded
Date Wed, 22 Jan 2014 20:12:45 GMT
Hi Sachith,

AFAIK I think what you need is a Queue abstraction on top of the table. The
workers (NewJobWorker) will poll the queue for new jobs. The queue will
contain the ACCEPTED jobs from the table. Only one thread will get a job.
Is this approach viable for you?

Thanks,
Supun..


On Mon, Jan 20, 2014 at 10:59 AM, Sachith Withana <swsachith@gmail.com>wrote:

> Hi all,
>
> There are race condition issues when using the multi-threaded
> Orchestrator. We need to come up with a way to synchronize the threads.
>
> Does anyone have any experiences or ideas regarding the issue?
>
>
> On Mon, Jan 20, 2014 at 9:34 AM, Marlon Pierce <marpierc@iu.edu> wrote:
>
>> This sounds like a good question for the architects@airavata list.
>>
>>
>> Marlon
>>
>> On 1/20/14 2:29 AM, Saminda Wijeratne wrote:
>> > Suresh suggested we use existing libraries. Does anyone have any
>> experience
>> > in using them?
>> >
>> >
>> > On Sun, Jan 19, 2014 at 3:55 PM, Lahiru Gunathilake <glahiru@gmail.com
>> >wrote:
>> >
>> >> Hi Sachitha,
>> >>
>> >>
>> >> On Sun, Jan 19, 2014 at 6:41 PM, Sachith Withana <swsachith@gmail.com
>> >wrote:
>> >>
>> >>> Hi all,
>> >>>
>> >>> There are race condition issues when using the multi-threaded
>> >>> Orchestrator.
>> >>>
>> >> +1, There's another thread we agreed on this. (subject: Orchestration
>> >> Component implementation review).
>> >>
>> >> Lahiru
>> >>
>> >>>  We need to come up with a way to synchronize the threads.
>> >>>
>> >>> Any suggestions?
>> >>>
>> >>> --
>> >>> Thanks,
>> >>> Sachith Withana
>> >>>
>> >>>
>> >>
>> >> --
>> >> System Analyst Programmer
>> >> PTI Lab
>> >> Indiana University
>> >>
>>
>>
>
>
> --
> Thanks,
> Sachith Withana
>
>


-- 
Supun Kamburugamuva
Member, Apache Software Foundation; http://www.apache.org
E-mail: supun06@gmail.com;  Mobile: +1 812 369 6762
Blog: http://supunk.blogspot.com

Mime
View raw message