Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボタンをクリックすると、アクションを開始したいと思います。これらの両方のアクションが終了したら、別のアクションを開始したいのですが、これには以前に終了した両方のアクションの結果が必要です。
さらに 2 つのスレッドを開始するスレッドを開始し、それらが終了するのを待ちます。つまり、join()。2 つのスレッドが終了すると、最初のスレッドが次の作業を実行できます。