Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] ease-dev Digest, Vol 27, Issue 7

Hi Jonah,

Thanks for the explanation.

One more clarification. 

>In otherwords are there many writers, or just one. That will determine
the strategy for solving the problem.

If there is a single writer then, instead of synchronization, will iterator's remove method work?

Prashanth


On Sun, Mar 5, 2017 at 10:30 PM, <ease-dev-request@xxxxxxxxxxx> wrote:
Send ease-dev mailing list submissions to
        ease-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/ease-dev
or, via email, send a message with subject or body 'help' to
        ease-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
        ease-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ease-dev digest..."


Today's Topics:

   1. Bug 511888 (Prash D)
   2. Re: Bug 511888 (Jonah Graham)


----------------------------------------------------------------------

Message: 1
Date: Sun, 5 Mar 2017 16:25:05 +0530
From: Prash D <prashanthd912@xxxxxxxxx>
To: ease-dev@xxxxxxxxxxx
Subject: [ease-dev] Bug 511888
Message-ID:
        <CAKAKgXvPd=264LR4aVMXuWL4m5B5SPtSAeR5tJNY4+_JYaKJEg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Christian,

It's related to Bug 511888
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=511888>.

Is Synchronization a good solution to this problem? However I read it comes
with several problems. One includes possibility of performance reduction
and second creation of deadlocks. Will these two cases be relevant in this
type of code?

Prashanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/ease-dev/attachments/20170305/bd0f49b5/attachment.html>

------------------------------

Message: 2
Date: Sun, 5 Mar 2017 14:29:26 +0000
From: Jonah Graham <jonah@xxxxxxxxxxxxxxxx>
To: ease developer discussions <ease-dev@xxxxxxxxxxx>
Subject: Re: [ease-dev] Bug 511888
Message-ID:
        <CAPmGMvhtfq9OCe1_zQobx-cvuwASzebZu9TK5a_=s=fDKuH8Bw@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Hi Prashanth,

There are two ways to go about solving a problem like Bug 511888, add
synchronization or redesign the code to not need it.

It is true that synchronization has a performance penalty, but unless
you have profiled the code to demonstrate it is critical performance
wise it is not likely a problem. Deadlock is always a problem to worry
about, but more research into this case will determine if it is a
problem here.

My suspicion is that what is missing is a way to synchronize the read
of the list in org.eclipse.ease.ui.view.ModuleStackDropin$2.getElements(ModuleStackDropin.java:92).
In otherwords are there many writers, or just one. That will determine
the strategy for solving the problem.

HTH
Jonah

~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On 5 March 2017 at 10:55, Prash D <prashanthd912@xxxxxxxxx> wrote:
> Hi Christian,
>
> It's related to Bug 511888.
>
> Is Synchronization a good solution to this problem? However I read it comes
> with several problems. One includes possibility of performance reduction and
> second creation of deadlocks. Will these two cases be relevant in this type
> of code?
>
> Prashanth
>
> _______________________________________________
> ease-dev mailing list
> ease-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/ease-dev


------------------------------

_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ease-dev

End of ease-dev Digest, Vol 27, Issue 7
***************************************



--
Thanks,
Prashanth Duvvada
Computer Science Student,
Amrita University

Back to the top