Hi,
I am trying to solve mocks in enthuware regarding concurrency. Here is the code given below
The options are
True
False
The answer is b. My first question is that, as these are two different instances over which a non-synchronized
method is invoked which in turn invokes the two synchronized methods simultaneously. My first question is that,
as they are invoked on two different instances, so calling of the synchronized methods should not block each other.
Is that correct? Will these two
thread executing parallel or one will be in the runnable pool. Please sorry for the stupid
questions, but really confused in threads.
Though seems like my first assumption is incorrect. Please help.
Thanks,
Arhaan