Languages

Menu
Sites
Language
Using Thread, Scheduler, Timer in background/Service application

Hi,

I want to use Threading and scheduler concept in my background/ service application. What is the available set of API's prefered in case of Service application. I have found links related to Ecore Thread but it seems that Ecore is prefered in context of GUI application where user interaction is needed. My application will not be having any GUI as being Service application.

Responses

2 Replies
Yasin Ali

Hi,

I think if you go through these basic topics you will be able to design your program
successfully. At first it is necessary to understand Service Applications' application states,
life cycle etc. Go through some helpful links below:

1. https://developer.tizen.org/development/guides/native-application/application-management/applications/service-application
2. https://developer.tizen.org/dev-guide/2.4/org.tizen.gettingstarted/html/native/app_model/application_model_n.htm

To use threading etc. please have a look below links:

1. https://developer.tizen.org/development/guides/native-application/user-interface/efl/core-loop-and-os-interfacing/using-threads
2. https://developer.tizen.org/development/guides/native-application/user-interface/efl/core-loop-and-os-interfacing/handling-main-loop
3. https://developer.tizen.org/development/guides/native-application/user-interface/dali/background-knowledge/multi-threaded-architecture

About Scheduler:
1. https://developer.tizen.org/development/sample/native/Social/Scheduler
2. https://developer.tizen.org/community/tip-tech/message-scheduler-using-tizen-contact-and-messaging-device-apis
[ Project Code Given ]
also
3. https://developer.tizen.org/dev-guide/2.4/org.tizen.guides/html/native/account/sync_manager_n.htm

About Timers:
1. https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/2.4/org.tizen.native.mobile.apireference/group__Ecore__Timer__Group.html
2. https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/2.4/org.tizen.native.mobile.apireference/ecore_timer_example_c.html

etc...

Hope these insightful links will help you.
Thanks.

GEUNSOO KIM

1. Thread

I think you can use Ecore_Thread in service app too. (I did)

2. Scheduler

You'd better use Alarm for scheduling than any other solutions on gear devices because the device can enter sleep mode no matter what you do on your service app.