• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Are Java apps Determined or Free-willed?

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I keep reading how Java applications are indeterminate. I can see how a multi-threaded application running on a time-sliced thread scheduler would be indeterminate. I also see how the look of a Layout manager would vary from platform to platform. But surely an application running on a specific platform that uses a pre-emptive thread scheduler would be as determinate as an application on that platform written in C++. Am I totally out to lunch on this one?
Dan
 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the usual Java environment, you don't have tight control over when garbage collection occurs or how long it takes. If it doesn't happen often, perhaps because you gave the applications lots of memory, it may take a long time when it does occur. I imagine that how this is handled changes somewhat with each major JVM release.
Pre-emptive scheduling, whether by the OS or by the virtual machine, is implementation-dependent for most systems, except maybe for some systems designed for real-time operation.
 
Dan Temple
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, thanks.
I forgot about the independent nature of Garbage collection, and didn't realize that Pre-emptive scheduling varied according to the JVM.
Dan
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
The new gardening playing cards kickstarter is now live!
https://www.kickstarter.com/projects/paulwheaton/garden-cards
reply
    Bookmark Topic Watch Topic
  • New Topic