Does Tizen platform kill or halt service apps?

Does Tizen platform kill or halt service apps?

BY 23 Jan 2018 Native Application Development


Hi. I’m developing a wearable service app which has infinite while loop for timing-critical job.

Psuedo code of my app is here:

 

void tickThread(void *data, Ecore_Thread *thread)
{
 while(1){
  doJobs();
  sleep(1);
 }
}

bool service_app_create(void *data)
{
 ecore_thread_run(tickThread, NULL, NULL, NULL);
 return true;
}

 

However, sometimes, doJobs() is never called or be delayed.

In my guess, Tizen platform seems to kill or halt the thread in the service apps, but I want to get clear answer.

If so, how can I avoid this restriction to develop the timing-critical service app?

P.S. “auto restart” property in the tizen-manifest.xml is true, but I can not certain that it works properly. Does it require partner privilege?

Written by