threads and process in our mobile

Login to reply to this topic.
Mon, 2008-07-28 08:10
Joined: 2008-07-17
Forum posts: 14

HI,
pls dont feel silly after gng thro my quieries:
how many operating systems and servers does a symbian based mobile have.
i heard that in our mobile only one process runs and rest all r its threads,is it so?
suppose if we create an observer,is that a different thread or an active object or a different process totally.

SysAp(S60 System Application) is started at boot time..and it will be silent listener.
if any key events occur,windows server fwds the events to sysap.will this windows server and sysap be in same thread,or different.
we use SysapLightControlObserver,SysApStartUpObserver,SysApAccessoryObserver, are these observers in the same sysap thread?
have many such basic doubts Sad ...pls answer me...

Thanks In advance.... Smiling


Mon, 2008-07-28 12:43
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2006
Re: threads and process in our mobile

how many operating systems and servers does a symbian based mobile have.

The phone has at least one operating system (Symbian) and possibly two (Symbian OS + phone manufacturer real time OS to handle the protocol stack). Regarding servers, I don't know... but Symbian OS runs many of them.

i heard that in our mobile only one process runs and rest all r its threads,is it so?

You have several process in your mobile. And at least one thread runs in each process.

suppose if we create an observer,is that a different thread or an active object or a different process totally.

That depend on what you call an observer and what is the architecture of your application. I guess that in your case you mean an Active Object which runs in the same thread and process.

if any key events occur,windows server fwds the events to sysap.will this windows server and sysap be in same thread,or different

Different!

we use SysapLightControlObserver,SysApStartUpObserver,SysApAccessoryObserver, are these observers in the same sysap thread?

It is not the class or file name which makes the code runs in a different thread or not. Check your code!


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Mon, 2008-07-28 13:17
Joined: 2008-07-17
Forum posts: 14
Re: threads and process in our mobile

Thank You Eric,

now i had got a fair idea on the mobile and os inside it and threads and process inside the mobile.
one more query:
can you please help me out in identifying between thread and process,
i theoritically know the difference process,thread and active object.
but coming to my code point of view: iam not so keen in identifying between those three.
so please can you just guide me by giving some tips to identify.

Mon, 2008-07-28 14:51
Forum Nokia Champion
Joined: 2003-06-10
Forum posts: 720
Re: threads and process in our mobile

http://www.symbian.com/developer/techlib/v9.3docs/doc_source/GlobalGlossary/index.html#GlossaryFolder.toc

process

The Symbian OS unit of memory protection - one user process may not access another's memory. A process contains one or more threads.

thread

A single unit of execution within a process; threads run concurrently.

active object

A class derived from CActive, which is responsible for issuing requests to asynchronous service providers and handling those requests on completion.

Tue, 2008-07-29 19:45
Joined: 2005-04-13
Forum posts: 121
Re: threads and process in our mobile

hi lil_jil,

You can use any of these entities as per your need. Using a process/thread/a.o. in your codebase, is simple a choice of architecture of your product. Each of them are haveing their advantage/disadvantages & previlages. You will have to study them carefully and will have to map them against your requirement.


Jupitar

  • Login to reply to this topic.