• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

threads system dependent?

 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

This is from enthuware:

What is guaranteed by the JVM about threads?
Choose two

1)Although in the end but all lower priority will be granted CPU time.

2)If a higher priority thread is in ready to run state then a lower priority
thread will not run till the higher priority thread ends.

3)CPU time is distributed to the threads according to thread priority.

4)Operating System decides which thread to run when and for how much time

5)Threads in Java are System dependent.

====
I thought 1) and 4) were right...
answer given: 4) and 5)

Threads in Java are System dependent...

but I somewhat vaguely remember reading something like threads in java are implemented by the jvm itself rather than the OS (unlike c or c++ )and that it provides for "portability"..?

protability vs System-dependent

why is 1) wrong? Because its not that CPU will be granted for lower priority processes only at the end??
 
Marshal
Posts: 25798
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(1) is not even wrong. It's not even a grammatical English phrase and I can't guess a meaning for it (as a native speaker of English). Are you sure you copied it correctly? If you did, it doesn't say much for the place you got it from.
 
What's that smell? Hey, sniff this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic