Purchase Solution

Sleep method

Not what you're looking for?

Ask Custom Question

State whether each of the following is true or false. If false, explain why.

a) Method sleep does not consume processor time while a thread sleeps.
b) Using a Lock guarantees that deadlock cannot occur.
c) Once a Lock has been obtained by a thread, the Lock object will not allow another thread to obtain the lock until the first thread releases it.
d) Swing components are thread safe.

Tips: http://www.horstmann.com/corejava/cj7v2ch1.pdf

Purchase this Solution

Solution Summary

Sleep method and other inquiries are discussed.

Solution Preview

a) False.
Sleep method does not lose control of the a thread and thus still consume the ...

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Javscript Basics

Quiz on basics of javascript programming language.

Basic Networking Questions

This quiz consists of some basic networking questions.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.