Skip to content
Advertisement

Tag: scheduling

How to add Quartz JobListener

I am writing a java/spring library to include in other projects that are using quartz. I need it to log something before each task is executed. I have a simple JobListener that looks like this: I know we can do something like this to add joblisteners: But how can I get the scheduler to add so I can add the

Does any JVM implement blocking with spin-waiting?

In Java Concurrency in Practice, the authors write: When locking is contended, the losing thread(s) must block. The JVM can implement blocking either via spin-waiting (repeatedly trying to acquire the lock until it succeeds) or by suspending the blocked thread through the operating system. Which is more efficient depends on the relationship between context switch overhead and the time until

Advertisement