Author Topic:   locks
shan
unregistered
posted February 20, 2000 09:22 PM           
check my answers

Which of the following have locks
only threads //t
classes have locks //t when u have sync methods
primitive types have locks //f
only runnable objects //t

maha anna
bartender
posted February 20, 2000 10:38 PM             
only threads //only makes the ans NO. (threads also have locks since all objects have locks)
classes have locks //t when u have sync static methods
primitive types have locks //f
only runnable objects //t NO[/b]
maha anna


[This message has been edited by maha anna (edited February 20, 2000).]

[This message has been edited by maha anna (edited February 20, 2000).]

shan
unregistered
posted February 21, 2000 08:35 AM           
as such runnable obj have locks becoz he said only
it is no

Am i right mahaAnna!!!

maha anna
bartender
posted February 21, 2000 02:04 PM             
yes Shan. your reason is right.

|