Unresponsive threading involving Swing and AWT-EventQueue

后端 未结 8 773
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 09:00

I have an application that is unresponsive and seems to be in a deadlock or something like a deadlock. See the two threads below. Notice that the My-Thread@101c

8条回答
  •  -上瘾入骨i
    2020-12-05 09:01

    Some thread (I assume My-Thread@101c) is synchronized on your TransactionalSystemImpl instance. The UI thread is trying to enter executeImpl but is blocked on the synchronized monitor and cannot. Where else is the TransactionalSystemImpl instance being used (with synchronized entry)? Probably between

      at com.acme.ui.ViewBuilder.renderOnEDT(ViewBuilder.java:157)
        .
        .
        .
      at com.acme.util.Job.run(Job.java:425)
    

提交回复
热议问题