[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [dsdp-ercp-dev] Running eSWT browser starves all other threads?
|
- From: "Gorkem Ercan" <gercan@xxxxxxx>
- Date: Tue, 23 Sep 2008 13:13:22 +0300
- Delivered-to: dsdp-ercp-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=6jsFrh1keBcjcx8Dp2nDxAI/F0ulzoxwfnSVGpibTiw=; b=FkyHu/COqin4g8ROEmBWW8hehe3rFL5lOhyT20RZhe2B60wi0YMF9wwC8jGSMZydWQ 24hliKgzsnvhw0jryZMuwhAXivKt8nEFj53npngq0dQcY3ZUZgL7cQgTqh9PxVZpSOWM JttcC8cyAlSCiD+mUE/nNOaGzIU6keP67gXeU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=TSENVkpjRxfAbfLAWFQZivhr5vWo37V/3AvMBbjQl3XcqOuzW4n7soJmcUZdr+uXDv BgBGqW/V0LX4TR4q26Bup0Yq7HGYmwwQKWg3hkPiJX6nYJiCNMqZmG7oaf8A0yYsZwEd 95Lmr1nlVEl2B8N1ptaWqmM6QO7dwME/UghT8=
This is odd. We have a similar job fetching mechanism on an internal
application as well and that works fine. We have also tried to
replicate the situation from your description but it worked for us.
Can you provide more code to us to help reproduce. Also do you see the
same behavior on different URLs? Symbian threading is a bit unfair and
if the page loaded busy loops for instance it can starve the java
threads.
--
Gorkem
On Mon, Sep 22, 2008 at 22:46, Gerald McCobb <mccobb@xxxxxxxxxxxxxx> wrote:
> Hello,
>
> We used the example for starting the eSWT browser in a Midlet:
>
> http://wiki.forum.nokia.com/index.php/CS000974_-_Using_eSWT_Browser_in_Java_ME
>
> Because the browser URL may be set from an external event, for example, we
> have an event processing queue for processing browser commands. This queue
> runs in its own thread. From the event queue a Browser Midlet handleEvent
> method is called, which processes the event more or less as follows:
>
> display.asyncExec(new Runnable() {
> public void run() {
>
> short type = getEventType(evt) ;
>
> switch (type) {
> case START:
> String url = (String)evt.getData();
> browser.setUrl(url);
> break;
> }
> }});
>
> After the event queue runs and the browser.setUrl is called the web page
> appears and works as expected. However, all other threads started for the
> event queue and logging are either cancelled or starved. No more thread
> processing takes place. What are we doing wrong, or is this the expected
> behavior?
>
> The above code works fine on Windows Mobile. Thanks.
>
>
> Regards,
>
> Jerry McCobb
> Openstream
> _______________________________________________
> dsdp-ercp-dev mailing list
> dsdp-ercp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-ercp-dev
>
>