Threads within threads in Java?

前端 未结 4 1022
被撕碎了的回忆
被撕碎了的回忆 2020-12-06 06:13

I am currently thinking about how to design a multithreading system in Java that needs to do some heavy network processing and database storage. The program will launch thre

4条回答
  •  执笔经年
    2020-12-06 07:00

    Yes a thread can launch another thread, and that thread can launch thread(s) and on and on...

    In the run() method of a thread - you can create and start other threads.

提交回复
热议问题