Which is True?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaaharhassan
    New Member
    • Nov 2008
    • 3

    Which is True?

    Which of the following statements are true?

    1.)Java uses a time-slicing scheduling system to determine which thread to execute.
    2.)Java uses a pre-emptive, co–operative system to determine which thread will execute.
    3.)The scheduling in Java is platform dependent, hence it will vary from one implementation to another.
    4.)To determine which thread has to execute set the priority code of the thread.
    1 & 2
    2 & 3
    3 & 4
    1, 3 & 4
    All of the above
    None of the above
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Great, what do you think?

    kind regards,

    Jos

    Comment

    • zaaharhassan
      New Member
      • Nov 2008
      • 3

      #3
      I think its 2 & 3
      what about you,Sir?

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by zaaharhassan
        I think its 2 & 3
        what about you,Sir?
        I think 3 is ok, but for 2: threads don't need to be cooperative to be scheduled
        in Java. They are pre-emptive though; I think only 3 is correct.

        kind regards,

        Jos

        Comment

        Working...