• 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

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: 24927
60
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.
 
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!