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
gibli
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 

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,684
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

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
Please use plain text.
Developer
gibli
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

 

 

 

Please use plain text.