Namespaces
Variants
Actions

Threading differences in Java Runtime for Symbian (Known Issue)

Jump to: navigation, search
SignpostIcon Gear 52.png
Article Metadata

Tested with
Devices(s): S60 3rd Edition, FP2 and S60 5th Edition devices

Compatibility
Platform(s): S60 3rd Edition, FP2, S60 5th Edition

Article
Created: User:Nokia Developer KB (18 Aug 2011)
Last edited: hamishwillee (01 Aug 2012)

Description

There are differences in Java threading in S60 Editions and in Symbian^3: more specifically, in S60 3rd Edition, Feature Pack 2 and S60 5th Edition (which use either Java Runtime 1.3 for S60 or Java Runtime 1.4 for S60) some of the system threads run in a higher priority than any application thread which allows the system threads to make call backs and run the application code.

This can lead to potential problems if the system threads are involved in resource-consuming tasks like continuous looping. In Symbian^3 (which uses Java Runtime 2.1 for Symbian), the threading priorities have been changed so that most of the threads running in the Java process share the same native priority EPriorityNormal which resolves the threading issues.

Solution

For the affected Editions, the Java application myst be redesigned and implemented accordingly. For example, the resource-consuming tasks like continuous looping or changing Displayables in different threads during runtime are potential areas of interest which would need to be addressed. In addition, threading variation in the application code for the different Editions can be done by using the related system information which can be acquired by using the system property microedition.platform as described in the Java Developer's Library.

This page was last modified on 1 August 2012, at 07:40.
177 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved