is it possible to define execution order for a set of threads in java

后端 未结 6 1782
离开以前
离开以前 2021-01-26 00:10

My understanding is that threads in theory are executed in parallel. JVM decides; when a resource is available which thread to pick from the waiting thread queue (based on some

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-26 00:37

    You can join a thread on another so he'll run when the other one finishes.

提交回复
热议问题