Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 44
Registered: ‎03-10-2009
My Device: Not Specified

Every UI app is running in its own JVM ?

In Android, every app is running in its own private unix process & mini-JVM.

 

I suspect this is the same also in Blackberry native apps.

The reason is because the sample apps calls System.exit(0) in the close method of a Screen.

 

Thanks for any clarification.

 

Regards,

 

Gibli 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Every UI app is running in its own JVM ?

Each application runs in its own process within a single JVM.  Each process is isolated.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Highlighted
Developer
Posts: 44
Registered: ‎03-10-2009
My Device: Not Specified

Re: Every UI app is running in its own JVM ?

I believe JVM abstracts out the native OS concepts of native processes/threads ?

 

So to rephrase your statement, is it correct to say ?

 

Each app runs in its own java thread within a single JVM.

 

Can you elaborate on how the isolation is implemented ? Can a misbehaving app bring down the whole JVM ?

 

Thanks