{{theTime}}

Search This Blog

Total Pageviews

How to test whether the current thread holds the lock on a specified object?

A static method called holdsLock has been added to the Thread class and can be added to the assertion like:

assert Thread.holdsLock(this); 

No comments:

Kafka Consumer Parallelism

Kafka Parallel Consumer Options: Key-level parallelism:  Multiple threads process the messages from a single partition in parallel while ma...