SCJP2. Please Indent your code using UBB Code
SCJP2. Please Indent your code using UBB Code
Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Given a reference called t to a class which extends Thread, which of the following will cause it to give up cycles to allow another thread to execute.
SCJP2. Please Indent your code using UBB Code
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
SCJP2. Please Indent your code using UBB Code
Ron Newman - SCJP 1.2 (100%, 7 August 2002)
SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
Originally posted by Jose Botella:
Paul, the posts before your first message suggest that most of us agreed that the question was badly expressed because it didn't mention where "yield()" was placed.
After your message the mess is up.
Because you guessed that the intention of the question was to test which thread will be acted on you assumed that all of us ignore how yield works.
If the intention of the question is this, t.yield() executed by t, will elicit the same examinee-respose whether you are aware of how yield works or not. In order to try to test this knowledge something like t1.yield() -when t2 is running- would have been much more effective.
Do you think that these posts would have ever been made if the question had been stated as the one you wrote?
[ August 15, 2002: Message edited by: Jose Botella ]
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Don't get me started about those stupid light bulbs. |