hi,
i just executed the below code which runs fine but i want to see which
thread the is being rejected (not being accomodated in the blocking queue for a while).though this is visible using the runnable.toString() but i am using currentthread and the output reads main thread rejected thrice.
op:(with toString())
op:with currentthread.getname()
why it is showing up main thread while using currentthread methed?
and how can i write toString override for Runnable object here?
thanks
Luke