Fixed the monitor/timer busy waits Now uses object monitors. Both need revisiting which I will do as a matter of urgency.
Regards, Adrian
Logged In: YES user_id=9459
Redone the timer and monitor services.
No longer does linear traversals, uses a TreeSet of only outstanding events ordered by date.
Proper tests for the synchronization. The timeout is now infinite when nothing to do. No need to protect against a deadlock.
Still need to put garbage collection into the threadpool to stop it holding threads indefinitley.
Log in to post a comment.
Logged In: YES
user_id=9459
Redone the timer and monitor services.
No longer does linear traversals, uses a TreeSet
of only outstanding events ordered by date.
Proper tests for the synchronization. The timeout is
now infinite when nothing to do. No need to protect
against a deadlock.
Still need to put garbage collection into the
threadpool to stop it holding threads indefinitley.
Regards,
Adrian